Skip to content

Commit 451a8f2

Browse files
authored
Merge pull request #1975 from tigerros/fix-routable-clippy-warning
Fix Clippy warning in `Routable` macro
2 parents e0b0afc + e217a95 commit 451a8f2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/router-macro/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ impl RouteEnum {
559559
#(#type_defs)*
560560

561561
#[allow(non_camel_case_types)]
562+
#[allow(clippy::derive_partial_eq_without_eq)]
562563
#[derive(Debug, PartialEq)]
563564
pub enum #match_error_name {
564565
#(#error_variants),*

packages/router-macro/src/segment.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ pub(crate) fn create_error_type(
309309

310310
quote! {
311311
#[allow(non_camel_case_types)]
312+
#[allow(clippy::derive_partial_eq_without_eq)]
312313
#[derive(Debug, PartialEq)]
313314
pub enum #error_name {
314315
ExtraSegments(String),

0 commit comments

Comments
 (0)