1 error: called `map(..).flatten()` on `Option`
2 --> $DIR/map_flatten.rs:8:10
12 | |__________________^
14 = note: `-D clippy::map-flatten` implied by `-D warnings`
15 help: try replacing `map` with `and_then` and remove the `.flatten()`
26 error: called `map(..).flatten()` on `Result`
27 --> $DIR/map_flatten.rs:18:10
37 | |__________________^
39 help: try replacing `map` with `and_then` and remove the `.flatten()`
50 error: called `map(..).flatten()` on `Result`
51 --> $DIR/map_flatten.rs:30:10
56 LL | | do_something();
61 | |__________________^
63 help: try replacing `map` with `and_then` and remove the `.flatten()`
65 LL ~ .and_then(|res| {
75 error: called `map(..).flatten()` on `Iterator`
76 --> $DIR/map_flatten.rs:42:10
78 LL | .map(|some_value| {
80 LL | | if some_value > 3 {
81 LL | | Some(some_value)
86 | |__________________^
88 help: try replacing `map` with `filter_map` and remove the `.flatten()`
90 LL ~ .filter_map(|some_value| {
91 LL + if some_value > 3 {
99 error: aborting due to 4 previous errors