diff --git a/derive/src/traits.rs b/derive/src/traits.rs index 5ba6f9f..73329f0 100644 --- a/derive/src/traits.rs +++ b/derive/src/traits.rs @@ -317,8 +317,10 @@ impl Derivable for TransparentWrapper { Ok(quote!( const _: () = { #[repr(transparent)] + #[allow(clippy::multiple_bound_locations)] struct AssertWrappedIsWrapped #impl_generics((u8, ::core::marker::PhantomData<#wrapped_field_ty>), #(#nonwrapped_field_tys),*) #where_clause; fn assert_zeroable() {} + #[allow(clippy::multiple_bound_locations)] fn check #impl_generics () #where_clause { #( assert_zeroable::<#nonwrapped_field_tys>();