Skip to content

Commit 9567a01

Browse files
committed
Add explicit allow to other test
1 parent de3d587 commit 9567a01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/ui/suspicious_map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::map_with_unused_argument_over_ranges)]
12
#![warn(clippy::suspicious_map)]
23

34
fn main() {

tests/ui/suspicious_map.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | 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

1111
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
1313
|
1414
LL | let _ = (0..3).map(f).count();
1515
| ^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)