Add 'unnecessary_flat_map.fixed'
This commit is contained in:
parent
4275d7b6ac
commit
6a263c0816
1 changed files with 13 additions and 0 deletions
13
tests/ui/unnecessary_flat_map.fixed
Normal file
13
tests/ui/unnecessary_flat_map.fixed
Normal file
|
@ -0,0 +1,13 @@
|
|||
// run-rustfix
|
||||
|
||||
#![warn(clippy::flat_map_identity)]
|
||||
|
||||
use std::convert;
|
||||
|
||||
fn main() {
|
||||
let iterator = [[0, 1], [2, 3], [4, 5]].iter();
|
||||
iterator.flatten();
|
||||
|
||||
let iterator = [[0, 1], [2, 3], [4, 5]].iter();
|
||||
iterator.flatten();
|
||||
}
|
Loading…
Add table
Reference in a new issue