mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 16:17:55 +00:00
Reduce scope of quote_spanned on SerializeWith wrapper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user