1 error: called `map_or(None, f)` on an `Option` value. This can be done more directly by calling `and_then(f)` instead
2 --> $DIR/option_map_or_none.rs:10:13
4 LL | let _ = opt.map_or(None, |x| Some(x + 1));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try using `and_then` instead: `opt.and_then(|x| Some(x + 1))`
7 = note: `-D clippy::option-map-or-none` implied by `-D warnings`
9 error: called `map_or(None, f)` on an `Option` value. This can be done more directly by calling `and_then(f)` instead
10 --> $DIR/option_map_or_none.rs:13:13
12 LL | let _ = opt.map_or(None, |x| {
16 | |_________________________^
18 help: try using `and_then` instead
20 LL | let _ = opt.and_then(|x| {
25 error: aborting due to 2 previous errors