Enable a few more clippy lints.

This commit is contained in:
Dan Gohman
2018-07-26 10:10:36 -07:00
parent cc7ba7e69a
commit 15520fa961
4 changed files with 11 additions and 17 deletions

View File

@@ -5,8 +5,6 @@
#![cfg_attr(feature = "std", warn(unstable_features))]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(feature="cargo-clippy", allow(
// Rustfmt 0.9.0 is at odds with this lint:
block_in_if_condition_stmt,
// Produces only a false positive:
while_let_loop,
// Produces many false positives, but did produce some valid lints, now fixed:
@@ -28,8 +26,6 @@
new_without_default,
new_without_default_derive,
should_implement_trait,
redundant_field_names,
useless_let_if_seq,
len_without_is_empty))]
#![cfg_attr(
feature = "cargo-clippy",