Reduce scope of quote_spanned on SerializeWith wrapper

This commit is contained in:
David Tolnay
2024-10-21 21:03:12 -07:00
parent 00460b8dee
commit ab4f3f3111
2 changed files with 7 additions and 10 deletions
+1 -6
View File
@@ -14,12 +14,7 @@ pub fn wrap_in_const(serde_path: Option<&syn::Path>, code: TokenStream) -> Token
quote! {
#[doc(hidden)]
#[allow(
clippy::needless_lifetimes,
non_upper_case_globals,
unused_attributes,
unused_qualifications,
)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
const _: () = {
#use_serde
#code