File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11
11
)]
12
12
#![warn(
13
13
clippy::redundant_closure,
14
- clippy::redundant_closures_for_method_calls ,
14
+ clippy::redundant_closure_for_method_calls ,
15
15
clippy::needless_borrow
16
16
)]
17
17
Original file line number Diff line number Diff line change 11
11
) ]
12
12
#![ warn(
13
13
clippy:: redundant_closure,
14
- clippy:: redundant_closures_for_method_calls ,
14
+ clippy:: redundant_closure_for_method_calls ,
15
15
clippy:: needless_borrow
16
16
) ]
17
17
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ error: redundant closure found
38
38
LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.foo());
39
39
| ^^^^^^^^^^^ help: remove closure as shown: `TestStruct::foo`
40
40
|
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`
42
42
43
43
error: redundant closure found
44
44
--> $DIR/eta.rs:77:51
Original file line number Diff line number Diff line change 3
3
#![allow(clippy::iter_cloned_collect)]
4
4
#![allow(clippy::clone_on_copy)]
5
5
#![allow(clippy::missing_docs_in_private_items)]
6
- #![allow(clippy::redundant_closures_for_method_calls )]
6
+ #![allow(clippy::redundant_closure_for_method_calls )]
7
7
8
8
fn main() {
9
9
let _: Vec<i8> = vec![5_i8; 6].iter().copied().collect();
Original file line number Diff line number Diff line change 3
3
#![ allow( clippy:: iter_cloned_collect) ]
4
4
#![ allow( clippy:: clone_on_copy) ]
5
5
#![ allow( clippy:: missing_docs_in_private_items) ]
6
- #![ allow( clippy:: redundant_closures_for_method_calls ) ]
6
+ #![ allow( clippy:: redundant_closure_for_method_calls ) ]
7
7
8
8
fn main ( ) {
9
9
let _: Vec < i8 > = vec ! [ 5_i8 ; 6 ] . iter ( ) . map ( |x| * x) . collect ( ) ;
You can’t perform that action at this time.
0 commit comments