mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 14:22:26 +00:00
Avoid clippy::missing_const_for_fn
(#115)
This commit is contained in:
parent
e612031c1f
commit
237d7d3730
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user