From 237d7d3730cf872cd1103a853d6c70fdbacce1d9 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sat, 9 Jul 2022 01:16:25 +0200 Subject: [PATCH] Avoid `clippy::missing_const_for_fn` (#115) --- derive/src/traits.rs | 1 + 1 file changed, 1 insertion(+) 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>();