diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 00000000000..0e0ae823121 --- /dev/null +++ b/clippy.toml @@ -0,0 +1,3 @@ +disallowed-macros = [ + "uniffi::export" +] diff --git a/testing/matrix-sdk-ffi-macros/src/lib.rs b/testing/matrix-sdk-ffi-macros/src/lib.rs index 6c55aa0c797..165784f2e5f 100644 --- a/testing/matrix-sdk-ffi-macros/src/lib.rs +++ b/testing/matrix-sdk-ffi-macros/src/lib.rs @@ -23,6 +23,7 @@ pub fn export_async(_attr: TokenStream, item: TokenStream) -> TokenStream { let item = proc_macro2::TokenStream::from(item); quote! { + #[allow(clippy::disallowed_macros)] #[uniffi::export(async_runtime = "tokio")] #item } @@ -71,6 +72,7 @@ pub fn export(attr: TokenStream, item: TokenStream) -> TokenStream { quote! { #maybe_error + #[allow(clippy::disallowed_macros)] #[uniffi::export(#attr)] #item }