Avoid clippy::missing_const_for_fn (#115)

This commit is contained in:
daxpedda 2022-07-09 01:16:25 +02:00 committed by GitHub
parent e612031c1f
commit 237d7d3730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,6 +510,7 @@ fn generate_fields_are_trait(
let span = input.span(); let span = input.span();
let field_types = get_field_types(&fields); let field_types = get_field_types(&fields);
Ok(quote_spanned! {span => #(const _: fn() = || { Ok(quote_spanned! {span => #(const _: fn() = || {
#[allow(clippy::missing_const_for_fn)]
fn check #impl_generics () #where_clause { fn check #impl_generics () #where_clause {
fn assert_impl<T: #trait_>() {} fn assert_impl<T: #trait_>() {}
assert_impl::<#field_types>(); assert_impl::<#field_types>();