Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerros committed Feb 24, 2024
1 parent 24e8ac2 commit e217a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/router-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ impl RouteEnum {
#(#type_defs)*

#[allow(non_camel_case_types)]
#[derive(Debug, PartialEq, Eq)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Debug, PartialEq)]
pub enum #match_error_name {
#(#error_variants),*
}
Expand Down
3 changes: 2 additions & 1 deletion packages/router-macro/src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ pub(crate) fn create_error_type(

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

0 comments on commit e217a95

Please sign in to comment.