We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c33bc6 commit 0275292Copy full SHA for 0275292
impl/src/expand.rs
@@ -182,12 +182,12 @@ fn impl_struct(input: Struct) -> TokenStream {
182
}
183
};
184
let lint_allows = if input.generics.lifetimes().next().is_some() {
185
- quote! {
+ Some(quote! {
186
clippy::elidable_lifetime_names,
187
clippy::needless_lifetimes,
188
- }
+ })
189
} else {
190
- quote!()
+ None
191
192
Some(quote! {
193
#[allow(
@@ -464,12 +464,12 @@ fn impl_enum(input: Enum) -> TokenStream {
464
465
466
467
468
469
470
471
472
473
474
475
0 commit comments