1 error: using `Option.and_then(Some)`, which is a no-op
2 --> $DIR/bind_instead_of_map.rs:9: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/bind_instead_of_map.rs:2:9
10 LL | #![deny(clippy::bind_instead_of_map)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
14 --> $DIR/bind_instead_of_map.rs:10:13
16 LL | let _ = x.and_then(|o| Some(o + 1));
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `x.map(|o| o + 1)`
19 error: using `Result.and_then(Ok)`, which is a no-op
20 --> $DIR/bind_instead_of_map.rs:16:13
22 LL | let _ = x.and_then(Ok);
23 | ^^^^^^^^^^^^^^ help: use the expression directly: `x`
25 error: aborting due to 3 previous errors