diff --git a/macro/src/derive.rs b/macro/src/derive.rs index afe85d1c2..e1d8d69e7 100644 --- a/macro/src/derive.rs +++ b/macro/src/derive.rs @@ -123,6 +123,7 @@ fn struct_clone(strct: &Struct, span: Span) -> TokenStream { }; quote_spanned! {span=> + #[allow(clippy::expl_impl_clone_on_copy)] impl #generics ::cxx::core::clone::Clone for #ident #generics { fn clone(&self) -> Self { #body @@ -230,6 +231,7 @@ fn enum_clone(enm: &Enum, span: Span) -> TokenStream { let ident = &enm.name.rust; quote_spanned! {span=> + #[allow(clippy::expl_impl_clone_on_copy)] impl ::cxx::core::clone::Clone for #ident { fn clone(&self) -> Self { *self diff --git a/macro/src/expand.rs b/macro/src/expand.rs index 573b0486b..ba36cb4c7 100644 --- a/macro/src/expand.rs +++ b/macro/src/expand.rs @@ -139,7 +139,13 @@ fn expand(ffi: Module, doc: Doc, attrs: OtherAttrs, apis: &[Api], types: &Types) #attrs #[deny(improper_ctypes, improper_ctypes_definitions)] #[allow(clippy::unknown_clippy_lints)] - #[allow(non_camel_case_types, non_snake_case, clippy::upper_case_acronyms)] + #[allow( + non_camel_case_types, + non_snake_case, + clippy::ptr_as_ptr, + clippy::upper_case_acronyms, + clippy::use_self, + )] #vis #mod_token #ident #expanded } }