diff --git a/crates/cargo-test-support/src/lib.rs b/crates/cargo-test-support/src/lib.rs index 5280ea0efd2..97c9beeddbe 100644 --- a/crates/cargo-test-support/src/lib.rs +++ b/crates/cargo-test-support/src/lib.rs @@ -3,8 +3,6 @@ //! See for a guide on writing tests. #![allow(clippy::all)] -#![warn(clippy::needless_borrow)] -#![warn(clippy::redundant_clone)] #![cfg_attr(feature = "deny-warnings", deny(warnings))] use std::env; diff --git a/src/bin/cargo/main.rs b/src/bin/cargo/main.rs index 109cd5de5b2..b605d911fe0 100644 --- a/src/bin/cargo/main.rs +++ b/src/bin/cargo/main.rs @@ -1,7 +1,5 @@ #![warn(rust_2018_idioms)] // while we're getting used to 2018 #![allow(clippy::all)] -#![warn(clippy::needless_borrow)] -#![warn(clippy::redundant_clone)] use cargo::core::shell::Shell; use cargo::util::toml::StringOrVec; diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index 17fcf8c0fe1..6b55c57434f 100644 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -5,8 +5,6 @@ // Due to some of the default clippy lints being somewhat subjective and not // necessarily an improvement, we prefer to not use them at this time. #![allow(clippy::all)] -#![warn(clippy::needless_borrow)] -#![warn(clippy::redundant_clone)] use crate::core::shell::Verbosity::Verbose; use crate::core::Shell; diff --git a/tests/testsuite/main.rs b/tests/testsuite/main.rs index df0977c7bf1..b5faa479275 100644 --- a/tests/testsuite/main.rs +++ b/tests/testsuite/main.rs @@ -1,8 +1,6 @@ // See src/cargo/lib.rs for notes on these lint settings. #![warn(rust_2018_idioms)] #![allow(clippy::all)] -#![warn(clippy::needless_borrow)] -#![warn(clippy::redundant_clone)] #![cfg_attr(feature = "deny-warnings", deny(warnings))] #[macro_use]