Ignore needless_lifetimes clippy lint in generated code

This commit is contained in:
David Tolnay 2024-10-21 19:12:52 -07:00
parent 966e9ccf0c
commit a8cbc9184e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

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