mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
Add 'unnecessary_flat_map.fixed'
This commit is contained in:
parent
4275d7b6ac
commit
6a263c0816
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…
Reference in New Issue
Block a user