1 error: using `Option.and_then(Some)`, which is a no-op
2 --> $DIR/option_and_then_some.rs:8:13
4 LL | let _ = x.and_then(Some);
5 | ^^^^^^^^^^^^^^^^ help: use the expression directly: `x`
7 note: the lint level is defined here
8 --> $DIR/option_and_then_some.rs:2:9
10 LL | #![deny(clippy::option_and_then_some)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
14 --> $DIR/option_and_then_some.rs:9:13
16 LL | let _ = x.and_then(|o| Some(o + 1));
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `x.map(|o| o + 1)`
19 error: aborting due to 2 previous errors