diff --git a/derive/src/traits.rs b/derive/src/traits.rs index c5f8bcb..a7791c7 100644 --- a/derive/src/traits.rs +++ b/derive/src/traits.rs @@ -510,6 +510,7 @@ fn generate_fields_are_trait( let span = input.span(); let field_types = get_field_types(&fields); Ok(quote_spanned! {span => #(const _: fn() = || { + #[allow(clippy::missing_const_for_fn)] fn check #impl_generics () #where_clause { fn assert_impl() {} assert_impl::<#field_types>();