1 error: .or(Some(…)).unwrap() found
2 --> $DIR/or_then_unwrap.rs:24:20
4 LL | let _ = option.or(Some("fallback")).unwrap(); // should trigger lint
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or("fallback")`
7 = note: `-D clippy::or-then-unwrap` implied by `-D warnings`
9 error: .or(Ok(…)).unwrap() found
10 --> $DIR/or_then_unwrap.rs:27:20
12 LL | let _ = result.or::<&str>(Ok("fallback")).unwrap(); // should trigger lint
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or("fallback")`
15 error: aborting due to 2 previous errors