mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-15 19:57:05 +00:00
Allow only unused_extern_crates instead of the whole rust_2018_idioms lint group in serde_derive-generated code
This commit is contained in:
12 files changed
+23
-23
No files matched your search
@@ -23,7 +23,7 @@ pub fn wrap_in_const(
|
||||
use #path as _serde;
|
||||
},
|
||||
None => quote! {
|
||||
#[allow(rust_2018_idioms, clippy::useless_attribute)]
|
||||
#[allow(unused_extern_crates, clippy::useless_attribute)]
|
||||
extern crate serde as _serde;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user