Combine the two clippy lists

This commit is contained in:
David Tolnay
2019-02-01 17:56:31 -08:00
parent d9704d02bb
commit 1b1d868837
+9 -14
View File
@@ -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.