]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/flat_map_identity.fixed
Merge commit '70c0f90453701e7d6d9b99aaa1fc6a765937b736' into clippyup
[rust.git] / src / tools / clippy / tests / ui / flat_map_identity.fixed
1 // run-rustfix
2
3 #![allow(unused_imports)]
4 #![warn(clippy::flat_map_identity)]
5
6 use std::convert;
7
8 fn main() {
9     let iterator = [[0, 1], [2, 3], [4, 5]].iter();
10     let _ = iterator.flatten();
11
12     let iterator = [[0, 1], [2, 3], [4, 5]].iter();
13     let _ = iterator.flatten();
14 }