Skip to content

Commit

Permalink
Merge pull request #1975 from tigerros/fix-routable-clippy-warning
Browse files Browse the repository at this point in the history
Fix Clippy warning in `Routable` macro
  • Loading branch information
ealmloff authored Feb 24, 2024
2 parents e0b0afc + e217a95 commit 451a8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/router-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ impl RouteEnum {
#(#type_defs)*

#[allow(non_camel_case_types)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Debug, PartialEq)]
pub enum #match_error_name {
#(#error_variants),*
Expand Down
1 change: 1 addition & 0 deletions packages/router-macro/src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ pub(crate) fn create_error_type(

quote! {
#[allow(non_camel_case_types)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Debug, PartialEq)]
pub enum #error_name {
ExtraSegments(String),
Expand Down

0 comments on commit 451a8f2

Please sign in to comment.