Skip to content

Commit

Permalink
Avoid clippy::missing_const_for_fn (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Jul 8, 2022
1 parent e612031 commit 237d7d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions derive/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: #trait_>() {}
assert_impl::<#field_types>();
Expand Down

0 comments on commit 237d7d3

Please sign in to comment.