Skip to content

Commit 08d2a0d

Browse files
committed
Also rename the lint in test files
1 parent ce63f3a commit 08d2a0d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/ui/eta.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)]
1212
#![warn(
1313
clippy::redundant_closure,
14-
clippy::redundant_closures_for_method_calls,
14+
clippy::redundant_closure_for_method_calls,
1515
clippy::needless_borrow
1616
)]
1717

tests/ui/eta.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)]
1212
#![warn(
1313
clippy::redundant_closure,
14-
clippy::redundant_closures_for_method_calls,
14+
clippy::redundant_closure_for_method_calls,
1515
clippy::needless_borrow
1616
)]
1717

tests/ui/eta.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ error: redundant closure found
3838
LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.foo());
3939
| ^^^^^^^^^^^ help: remove closure as shown: `TestStruct::foo`
4040
|
41-
= note: `-D clippy::redundant-closures-for-method-calls` implied by `-D warnings`
41+
= note: `-D clippy::redundant-closure-for-method-calls` implied by `-D warnings`
4242

4343
error: redundant closure found
4444
--> $DIR/eta.rs:77:51

tests/ui/map_clone.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(clippy::iter_cloned_collect)]
44
#![allow(clippy::clone_on_copy)]
55
#![allow(clippy::missing_docs_in_private_items)]
6-
#![allow(clippy::redundant_closures_for_method_calls)]
6+
#![allow(clippy::redundant_closure_for_method_calls)]
77

88
fn main() {
99
let _: Vec<i8> = vec![5_i8; 6].iter().copied().collect();

tests/ui/map_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(clippy::iter_cloned_collect)]
44
#![allow(clippy::clone_on_copy)]
55
#![allow(clippy::missing_docs_in_private_items)]
6-
#![allow(clippy::redundant_closures_for_method_calls)]
6+
#![allow(clippy::redundant_closure_for_method_calls)]
77

88
fn main() {
99
let _: Vec<i8> = vec![5_i8; 6].iter().map(|x| *x).collect();

0 commit comments

Comments
 (0)