Skip to content

Commit f40ff9a

Browse files
committed
Suppress type_complexity lint in generated code
1 parent 2ac95f3 commit f40ff9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/expand.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
112112
fn lint_suppress_with_body() -> Attribute {
113113
parse_quote! {
114114
#[allow(
115+
clippy::type_complexity,
115116
clippy::type_repetition_in_bounds,
116117
clippy::used_underscore_binding
117118
)]
@@ -120,7 +121,10 @@ fn lint_suppress_with_body() -> Attribute {
120121

121122
fn lint_suppress_without_body() -> Attribute {
122123
parse_quote! {
123-
#[allow(clippy::type_repetition_in_bounds)]
124+
#[allow(
125+
clippy::type_complexity,
126+
clippy::type_repetition_in_bounds
127+
)]
124128
}
125129
}
126130

0 commit comments

Comments
 (0)