diff --git a/serde/src/lib.rs b/serde/src/lib.rs index f71348f0..112df6e4 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -92,8 +92,8 @@ // Whitelisted clippy lints #![cfg_attr(feature = "cargo-clippy", allow(cast_lossless, const_static_lifetime, doc_markdown, linkedlist, - needless_pass_by_value, type_complexity, unreadable_literal, - zero_prefixed_literal))] + needless_pass_by_value, redundant_field_names, type_complexity, + unreadable_literal, zero_prefixed_literal))] // Whitelisted clippy_pedantic lints #![cfg_attr(feature = "cargo-clippy", allow( // integer and float ser/de requires these sorts of casts diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index 7fbd4bf7..e30253e8 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -23,8 +23,8 @@ //! [https://serde.rs/derive.html]: https://serde.rs/derive.html #![doc(html_root_url = "https://docs.rs/serde_derive/1.0.27")] -#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] -#![cfg_attr(feature = "cargo-clippy", allow(used_underscore_binding))] +#![cfg_attr(feature = "cargo-clippy", allow(enum_variant_names, redundant_field_names, + too_many_arguments, used_underscore_binding))] // The `quote!` macro requires deep recursion. #![recursion_limit = "256"] diff --git a/serde_derive_internals/src/lib.rs b/serde_derive_internals/src/lib.rs index 0119d7f7..58a1bde9 100644 --- a/serde_derive_internals/src/lib.rs +++ b/serde_derive_internals/src/lib.rs @@ -7,7 +7,8 @@ // except according to those terms. #![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.19.0")] -#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity, doc_markdown, match_same_arms))] +#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity, doc_markdown, match_same_arms, + redundant_field_names))] #[macro_use] extern crate syn; diff --git a/serde_test/src/lib.rs b/serde_test/src/lib.rs index 940e70a1..93d09deb 100644 --- a/serde_test/src/lib.rs +++ b/serde_test/src/lib.rs @@ -161,7 +161,8 @@ #![cfg_attr(feature = "cargo-clippy", allow(float_cmp))] // Whitelisted clippy_pedantic lints #![cfg_attr(feature = "cargo-clippy", - allow(missing_docs_in_private_items, stutter, use_debug, use_self))] + allow(empty_line_after_outer_attr, missing_docs_in_private_items, + redundant_field_names, stutter, use_debug, use_self))] #[macro_use] extern crate serde; diff --git a/test_suite/tests/test_macros.rs b/test_suite/tests/test_macros.rs index 53f8f70c..5dd489e0 100644 --- a/test_suite/tests/test_macros.rs +++ b/test_suite/tests/test_macros.rs @@ -10,7 +10,7 @@ // https://github.com/rust-lang/rust/issues/47311 #![allow(unused_parens)] -#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] +#![cfg_attr(feature = "cargo-clippy", allow(double_parens, redundant_field_names))] #[macro_use] extern crate serde_derive; diff --git a/test_suite/tests/test_remote.rs b/test_suite/tests/test_remote.rs index 5ea9c0dc..a4c3a89b 100644 --- a/test_suite/tests/test_remote.rs +++ b/test_suite/tests/test_remote.rs @@ -8,7 +8,7 @@ // https://github.com/rust-lang/rust/issues/47311 #![allow(unused_parens)] -#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] +#![cfg_attr(feature = "cargo-clippy", allow(double_parens, redundant_field_names))] #[macro_use] extern crate serde_derive;