1 error: called `map(f).unwrap_or_else(g)` on a Result value. This can be done more directly by calling `ok().map_or_else(g, f)` instead
2 --> $DIR/result_map_unwrap_or_else.rs:21:13
4 LL | let _ = res.map(|x| x + 1)
7 LL | | .unwrap_or_else(|e| 0); // should lint even though this call is on a separate line
8 | |_____________________________________^
10 = note: `-D clippy::result-map-unwrap-or-else` implied by `-D warnings`
11 = note: replace `map(|x| x + 1).unwrap_or_else(|e| 0)` with `ok().map_or_else(|e| 0, |x| x + 1)`
13 error: called `map(f).unwrap_or_else(g)` on a Result value. This can be done more directly by calling `ok().map_or_else(g, f)` instead
14 --> $DIR/result_map_unwrap_or_else.rs:25:13
16 LL | let _ = res.map(|x| {
20 LL | | ).unwrap_or_else(|e| 0);
21 | |_____________________________________^
23 error: called `map(f).unwrap_or_else(g)` on a Result value. This can be done more directly by calling `ok().map_or_else(g, f)` instead
24 --> $DIR/result_map_unwrap_or_else.rs:29:13
26 LL | let _ = res.map(|x| x + 1)
28 LL | | .unwrap_or_else(|e|
33 error: aborting due to 3 previous errors