1 error: called `filter_map(p).next()` on an `Iterator`. This is more succinctly expressed by calling `.find_map(p)` instead.
2 --> $DIR/filter_map_next.rs:6:32
4 LL | let element: Option<i32> = a.iter().filter_map(|s| s.parse().ok()).next();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::filter-map-next` implied by `-D warnings`
8 = note: replace `filter_map(|s| s.parse().ok()).next()` with `find_map(|s| s.parse().ok())`
10 error: called `filter_map(p).next()` on an `Iterator`. This is more succinctly expressed by calling `.find_map(p)` instead.
11 --> $DIR/filter_map_next.rs:10:26
13 LL | let _: Option<u32> = vec![1, 2, 3, 4, 5, 6]
14 | __________________________^
16 LL | | .filter_map(|x| {
23 error: aborting due to 2 previous errors