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) ]
12#![ warn( clippy:: suspicious_map) ]
23
34fn main ( ) {
Original file line number Diff line number Diff line change 11error: 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
33 |
44LL | let _ = (0..3).map(|x| x + 2).count();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | let _ = (0..3).map(|x| x + 2).count();
99 = help: to override `-D warnings` add `#[allow(clippy::suspicious_map)]`
1010
1111error: 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
1313 |
1414LL | let _ = (0..3).map(f).count();
1515 | ^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments