1 error: redundant closure found
4 LL | let a = Some(1u8).map(|a| foo(a));
5 | ^^^^^^^^^^ help: remove closure as shown: `foo`
7 = note: `-D clippy::redundant-closure` implied by `-D warnings`
9 error: redundant closure found
12 LL | meta(|a| foo(a));
13 | ^^^^^^^^^^ help: remove closure as shown: `foo`
15 error: redundant closure found
18 LL | let c = Some(1u8).map(|a| {1+2; foo}(a));
19 | ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `{1+2; foo}`
21 error: this expression borrows a reference that is immediately dereferenced by the compiler
24 LL | all(&[1, 2, 3], &&2, |x, y| below(x, y)); //is adjusted
25 | ^^^ help: change this to: `&2`
27 = note: `-D clippy::needless-borrow` implied by `-D warnings`
29 error: redundant closure found
32 LL | let e = Some(1u8).map(|a| generic(a));
33 | ^^^^^^^^^^^^^^ help: remove closure as shown: `generic`
35 error: aborting due to 5 previous errors