Merge pull request #2840 from dtolnay/needlesslifetimes

Ignore needless_lifetimes clippy lint in generated code
This commit is contained in:
David Tolnay 2024-10-21 19:25:40 -07:00 committed by GitHub
commit 5382ef3b0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,12 @@ pub fn wrap_in_const(serde_path: Option<&syn::Path>, code: TokenStream) -> Token
quote! {
#[doc(hidden)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
#[allow(
clippy::needless_lifetimes,
non_upper_case_globals,
unused_attributes,
unused_qualifications,
)]
const _: () = {
#use_serde
#code