Skip to content

Commit 876ffa4

Browse files
committed
Auto merge of #6669 - magurotuna:fix-test-name, r=flip1995
Fix file names of flat_map_identity test This patch 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: #4231 changelog: none
2 parents 3e41797 + 6396b8f commit 876ffa4

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
File renamed without changes.

tests/ui/unnecessary_flat_map.stderr renamed to tests/ui/flat_map_identity.stderr

Lines changed: 2 additions & 2 deletions
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)