Merge pull request #1975 from tigerros/fix-routable-clippy-warning

Fix Clippy warning in `Routable` macro
This commit is contained in:
Evan Almloff 2024-02-24 11:22:04 -06:00 committed by GitHub
commit 451a8f231e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -559,6 +559,7 @@ impl RouteEnum {
#(#type_defs)* #(#type_defs)*
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
pub enum #match_error_name { pub enum #match_error_name {
#(#error_variants),* #(#error_variants),*

View file

@ -309,6 +309,7 @@ pub(crate) fn create_error_type(
quote! { quote! {
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
pub enum #error_name { pub enum #error_name {
ExtraSegments(String), ExtraSegments(String),