Skip to content

Commit 6a263c0

Browse files
committed
Add 'unnecessary_flat_map.fixed'
1 parent 4275d7b commit 6a263c0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ui/unnecessary_flat_map.fixed

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// run-rustfix
2+
3+
#![warn(clippy::flat_map_identity)]
4+
5+
use std::convert;
6+
7+
fn main() {
8+
let iterator = [[0, 1], [2, 3], [4, 5]].iter();
9+
iterator.flatten();
10+
11+
let iterator = [[0, 1], [2, 3], [4, 5]].iter();
12+
iterator.flatten();
13+
}

0 commit comments

Comments
 (0)