mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 16:01:02 +00:00
Ignore redundant_field_names lint
This commit is contained in:
+2
-2
@@ -92,8 +92,8 @@
|
|||||||
// Whitelisted clippy lints
|
// Whitelisted clippy lints
|
||||||
#![cfg_attr(feature = "cargo-clippy",
|
#![cfg_attr(feature = "cargo-clippy",
|
||||||
allow(cast_lossless, const_static_lifetime, doc_markdown, linkedlist,
|
allow(cast_lossless, const_static_lifetime, doc_markdown, linkedlist,
|
||||||
needless_pass_by_value, type_complexity, unreadable_literal,
|
needless_pass_by_value, redundant_field_names, type_complexity,
|
||||||
zero_prefixed_literal))]
|
unreadable_literal, zero_prefixed_literal))]
|
||||||
// Whitelisted clippy_pedantic lints
|
// Whitelisted clippy_pedantic lints
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(
|
#![cfg_attr(feature = "cargo-clippy", allow(
|
||||||
// integer and float ser/de requires these sorts of casts
|
// integer and float ser/de requires these sorts of casts
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
|
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
|
||||||
|
|
||||||
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.27")]
|
#![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(enum_variant_names, redundant_field_names,
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(used_underscore_binding))]
|
too_many_arguments, used_underscore_binding))]
|
||||||
// The `quote!` macro requires deep recursion.
|
// The `quote!` macro requires deep recursion.
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.19.0")]
|
#![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]
|
#[macro_use]
|
||||||
extern crate syn;
|
extern crate syn;
|
||||||
|
|||||||
@@ -161,7 +161,8 @@
|
|||||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
||||||
// Whitelisted clippy_pedantic lints
|
// Whitelisted clippy_pedantic lints
|
||||||
#![cfg_attr(feature = "cargo-clippy",
|
#![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]
|
#[macro_use]
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
// https://github.com/rust-lang/rust/issues/47311
|
// https://github.com/rust-lang/rust/issues/47311
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(double_parens))]
|
#![cfg_attr(feature = "cargo-clippy", allow(double_parens, redundant_field_names))]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
// https://github.com/rust-lang/rust/issues/47311
|
// https://github.com/rust-lang/rust/issues/47311
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(double_parens))]
|
#![cfg_attr(feature = "cargo-clippy", allow(double_parens, redundant_field_names))]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
|||||||
Reference in New Issue
Block a user