]> git.lizzy.rs Git - rust.git/blob - tests/ui/unnecessary_flat_map.fixed
Add 'unnecessary_flat_map.fixed'
[rust.git] / tests / ui / unnecessary_flat_map.fixed
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 }