mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Allow clippy::map_clone
We should turn it on after Iterator::copied stabilizes
This commit is contained in:
@@ -144,8 +144,12 @@ pub fn run_clippy() -> Result<()> {
|
||||
_ => install_clippy()?,
|
||||
};
|
||||
|
||||
let allowed_lints =
|
||||
["clippy::collapsible_if", "clippy::nonminimal_bool", "clippy::needless_pass_by_value"];
|
||||
let allowed_lints = [
|
||||
"clippy::collapsible_if",
|
||||
"clippy::nonminimal_bool",
|
||||
"clippy::needless_pass_by_value",
|
||||
"clippy::map_clone", // FIXME: remove when Iterator::copied stabilizes (1.36.0)
|
||||
];
|
||||
run(
|
||||
&format!(
|
||||
"rustup run {} -- cargo clippy --all-features --all-targets -- -A {}",
|
||||
|
||||
Reference in New Issue
Block a user