From 4cf4ff679f8ec3de6840e8870800c34d124d78f0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 16 Mar 2024 16:04:14 -0700 Subject: [PATCH] Ignore unused_qualifications rustc lint in generated code --- src/expand.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/expand.rs b/src/expand.rs index 2a8b3c2..cbef6f2 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -125,6 +125,7 @@ pub fn expand(input: &mut Item, is_local: bool) { fn lint_suppress_with_body() -> Attribute { parse_quote! { #[allow( + unused_qualifications, clippy::async_yields_async, clippy::diverging_sub_expression, clippy::let_unit_value, @@ -140,6 +141,7 @@ fn lint_suppress_with_body() -> Attribute { fn lint_suppress_without_body() -> Attribute { parse_quote! { #[allow( + unused_qualifications, clippy::type_complexity, clippy::type_repetition_in_bounds )]