File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: map_with_unused_argument_over_ranges) ]
1
2
#![ warn( clippy:: suspicious_map) ]
2
3
3
4
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
error: this call to `map()` won't have an effect on the call to `count()`
2
- --> tests/ui/suspicious_map.rs:4 :13
2
+ --> tests/ui/suspicious_map.rs:5 :13
3
3
|
4
4
LL | let _ = (0..3).map(|x| x + 2).count();
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | let _ = (0..3).map(|x| x + 2).count();
9
9
= help: to override `-D warnings` add `#[allow(clippy::suspicious_map)]`
10
10
11
11
error: this call to `map()` won't have an effect on the call to `count()`
12
- --> tests/ui/suspicious_map.rs:8 :13
12
+ --> tests/ui/suspicious_map.rs:9 :13
13
13
|
14
14
LL | let _ = (0..3).map(f).count();
15
15
| ^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments