// run-rustfix

#![allow(unused_imports)]
#![warn(clippy::filter_map_identity)]

fn main() {
    let iterator = vec![Some(1), None, Some(2)].into_iter();
    let _ = iterator.flatten();

    let iterator = vec![Some(1), None, Some(2)].into_iter();
    let _ = iterator.flatten();

    use std::convert::identity;
    let iterator = vec![Some(1), None, Some(2)].into_iter();
    let _ = iterator.flatten();
}
