Skip to content

Commit 65c8266

Browse files
committed
Auto merge of #10438 - rukai:deny_clippy, r=ehuss
Remove remaining 2 warn(clippy::*) instances
2 parents 6d11f9e + fab44ff commit 65c8266

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

crates/cargo-test-support/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//! See <https://rust-lang.github.io/cargo/contrib/> for a guide on writing tests.
44
55
#![allow(clippy::all)]
6-
#![warn(clippy::needless_borrow)]
7-
#![warn(clippy::redundant_clone)]
86
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
97

108
use std::env;

src/bin/cargo/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![warn(rust_2018_idioms)] // while we're getting used to 2018
22
#![allow(clippy::all)]
3-
#![warn(clippy::needless_borrow)]
4-
#![warn(clippy::redundant_clone)]
53

64
use cargo::core::shell::Shell;
75
use cargo::util::toml::StringOrVec;

src/cargo/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// Due to some of the default clippy lints being somewhat subjective and not
66
// necessarily an improvement, we prefer to not use them at this time.
77
#![allow(clippy::all)]
8-
#![warn(clippy::needless_borrow)]
9-
#![warn(clippy::redundant_clone)]
108

119
use crate::core::shell::Verbosity::Verbose;
1210
use crate::core::Shell;

tests/testsuite/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// See src/cargo/lib.rs for notes on these lint settings.
22
#![warn(rust_2018_idioms)]
33
#![allow(clippy::all)]
4-
#![warn(clippy::needless_borrow)]
5-
#![warn(clippy::redundant_clone)]
64
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
75

86
#[macro_use]

0 commit comments

Comments
 (0)