Ignore redundant_field_names lint
This commit is contained in:
parent
8bba8447ef
commit
d6f07f2f47
@ -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
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user