1 error: this pattern reimplements `Option::unwrap_or`
2 --> $DIR/manual_unwrap_or.rs:6:5
8 | |_____^ help: replace with: `Some(1).unwrap_or(42)`
10 = note: `-D clippy::manual-unwrap-or` implied by `-D warnings`
12 error: this pattern reimplements `Option::unwrap_or`
13 --> $DIR/manual_unwrap_or.rs:12:5
15 LL | / match Some(1) {
19 | |_____^ help: replace with: `Some(1).unwrap_or(42)`
21 error: this pattern reimplements `Option::unwrap_or`
22 --> $DIR/manual_unwrap_or.rs:18:5
24 LL | / match Some(1) {
26 LL | | None => 1 + 42,
28 | |_____^ help: replace with: `Some(1).unwrap_or(1 + 42)`
30 error: this pattern reimplements `Option::unwrap_or`
31 --> $DIR/manual_unwrap_or.rs:25:5
33 LL | / match Some(1) {
44 LL | Some(1).unwrap_or({
51 error: this pattern reimplements `Option::unwrap_or`
52 --> $DIR/manual_unwrap_or.rs:35:5
54 LL | / match Some("Bob") {
56 LL | | None => "Alice",
58 | |_____^ help: replace with: `Some("Bob").unwrap_or("Alice")`
60 error: aborting due to 5 previous errors