diff options
author | Alan Du <[email protected]> | 2019-06-04 07:24:47 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2019-06-04 08:00:58 +0100 |
commit | 07ebf5528eec0b054655a11e426e7f0041bcdf82 (patch) | |
tree | 28f63b69502986bd1b9c91b85f439197e7567ed9 /crates/tools/src | |
parent | 557e90c6ca3c4e754ceeea9c08d8d34590334e77 (diff) |
Allow clippy::map_clone
We should turn it on after Iterator::copied stabilizes
Diffstat (limited to 'crates/tools/src')
-rw-r--r-- | crates/tools/src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs index f00e46a34..b424eb701 100644 --- a/crates/tools/src/lib.rs +++ b/crates/tools/src/lib.rs | |||
@@ -144,8 +144,12 @@ pub fn run_clippy() -> Result<()> { | |||
144 | _ => install_clippy()?, | 144 | _ => install_clippy()?, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | let allowed_lints = | 147 | let allowed_lints = [ |
148 | ["clippy::collapsible_if", "clippy::nonminimal_bool", "clippy::needless_pass_by_value"]; | 148 | "clippy::collapsible_if", |
149 | "clippy::nonminimal_bool", | ||
150 | "clippy::needless_pass_by_value", | ||
151 | "clippy::map_clone", // FIXME: remove when Iterator::copied stabilizes (1.36.0) | ||
152 | ]; | ||
149 | run( | 153 | run( |
150 | &format!( | 154 | &format!( |
151 | "rustup run {} -- cargo clippy --all-features --all-targets -- -A {}", | 155 | "rustup run {} -- cargo clippy --all-features --all-targets -- -A {}", |