Skip to content

Commit 6396b8f

Browse files
committed
Fix file names of flat_map_identity test
This commit fixes the file names of the `flat_map_identity` test. Previously, their names were started with `unnecessary_flat_map` even though the lint rule name is `flat_map_identity`. This inconsistency happened probably because the rule name was changed during the discussion in the PR where this rule was introduced. ref: rust-lang#4231
1 parent c5f3f9d commit 6396b8f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.

tests/ui/unnecessary_flat_map.stderr tests/ui/flat_map_identity.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: called `flat_map(|x| x)` on an `Iterator`
2-
--> $DIR/unnecessary_flat_map.rs:10:22
2+
--> $DIR/flat_map_identity.rs:10:22
33
|
44
LL | let _ = iterator.flat_map(|x| x);
55
| ^^^^^^^^^^^^^^^ help: try: `flatten()`
66
|
77
= note: `-D clippy::flat-map-identity` implied by `-D warnings`
88

99
error: called `flat_map(std::convert::identity)` on an `Iterator`
10-
--> $DIR/unnecessary_flat_map.rs:13:22
10+
--> $DIR/flat_map_identity.rs:13:22
1111
|
1212
LL | let _ = iterator.flat_map(convert::identity);
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`

0 commit comments

Comments
 (0)