1 error: use of `filter_map` with an identity function
2 --> $DIR/filter_map_identity.rs:8:22
4 LL | let _ = iterator.filter_map(|x| x);
5 | ^^^^^^^^^^^^^^^^^ help: try: `flatten()`
7 = note: `-D clippy::filter-map-identity` implied by `-D warnings`
9 error: use of `filter_map` with an identity function
10 --> $DIR/filter_map_identity.rs:11:22
12 LL | let _ = iterator.filter_map(std::convert::identity);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
15 error: use of `filter_map` with an identity function
16 --> $DIR/filter_map_identity.rs:15:22
18 LL | let _ = iterator.filter_map(identity);
19 | ^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
21 error: use of `filter_map` with an identity function
22 --> $DIR/filter_map_identity.rs:18:22
24 LL | let _ = iterator.filter_map(|x| return x);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
27 error: aborting due to 4 previous errors