mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-17 15:01:03 +00:00
Combine the two clippy lists
This commit is contained in:
+9
-14
@@ -86,36 +86,31 @@
|
|||||||
#![cfg_attr(feature = "alloc", feature(alloc))]
|
#![cfg_attr(feature = "alloc", feature(alloc))]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
||||||
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
|
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
|
||||||
// Ignored clippy lints
|
// Ignored clippy and clippy_pedantic lints
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
allow(
|
allow(
|
||||||
cast_lossless,
|
// not available in our oldest supported compiler
|
||||||
const_static_lifetime,
|
const_static_lifetime,
|
||||||
doc_markdown,
|
empty_enum,
|
||||||
needless_pass_by_value,
|
|
||||||
redundant_field_names,
|
redundant_field_names,
|
||||||
type_complexity,
|
|
||||||
zero_prefixed_literal
|
|
||||||
)
|
|
||||||
)]
|
|
||||||
// Ignored clippy_pedantic lints
|
|
||||||
#![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
|
||||||
cast_possible_truncation,
|
cast_possible_truncation,
|
||||||
cast_possible_wrap,
|
cast_possible_wrap,
|
||||||
cast_precision_loss,
|
cast_precision_loss,
|
||||||
cast_sign_loss,
|
cast_sign_loss,
|
||||||
// things are often more readable this way
|
// things are often more readable this way
|
||||||
|
cast_lossless,
|
||||||
module_name_repetitions,
|
module_name_repetitions,
|
||||||
single_match_else,
|
single_match_else,
|
||||||
|
type_complexity,
|
||||||
use_self,
|
use_self,
|
||||||
|
zero_prefixed_literal,
|
||||||
// not practical
|
// not practical
|
||||||
|
needless_pass_by_value,
|
||||||
similar_names,
|
similar_names,
|
||||||
// alternative is not stable
|
// preference
|
||||||
empty_enum,
|
doc_markdown,
|
||||||
)
|
)
|
||||||
)]
|
)]
|
||||||
// Blacklisted Rust lints.
|
// Blacklisted Rust lints.
|
||||||
|
|||||||
Reference in New Issue
Block a user