error: called `filter_map(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find_map(..)` instead --> $DIR/filter_map_next.rs:7:26 | LL | let _: Option = vec![1, 2, 3, 4, 5, 6] | __________________________^ LL | | .into_iter() LL | | .filter_map(|x| { LL | | if x == 2 { ... | LL | | }) LL | | .next(); | |_______________^ | = note: `-D clippy::filter-map-next` implied by `-D warnings` error: aborting due to previous error