File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ error: redundant closure found
3838LL | 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
4343error: redundant closure found
4444 --> $DIR/eta.rs:77:51
Original file line number Diff line number Diff line change 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
88fn main() {
99 let _: Vec<i8> = vec![5_i8; 6].iter().copied().collect();
Original file line number Diff line number Diff line change 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
88fn main ( ) {
99 let _: Vec < i8 > = vec ! [ 5_i8 ; 6 ] . iter ( ) . map ( |x| * x) . collect ( ) ;
You can’t perform that action at this time.
0 commit comments