Update serde_derive to tool attrs

This commit is contained in:
David Tolnay
2020-04-05 21:00:52 -07:00
parent d1564525ad
commit 1b35c9e27e
2 changed files with 29 additions and 38 deletions
+1 -3
View File
@@ -21,9 +21,7 @@ pub fn wrap_in_const(
use #path as _serde;
},
None => quote! {
#[allow(unknown_lints)]
#[cfg_attr(feature = "cargo-clippy", allow(useless_attribute))]
#[allow(rust_2018_idioms)]
#[allow(rust_2018_idioms, clippy::useless_attribute)]
extern crate serde as _serde;
},
};