| error: called `unwrap` on `a` after checking its variant with `is_none` |
| --> tests/ui/checked_unwrap/if_let_chains.rs:9:42 |
| | |
| LL | if a.is_none() || b.is_none() { |
| | ----------- the check is happening here |
| ... |
| LL | println!("the value of a is {}", a.unwrap()); |
| | ^^^^^^^^^^ |
| | |
| = help: try using `match` |
| = note: `-D clippy::unnecessary-unwrap` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::unnecessary_unwrap)]` |
| |
| error: called `unwrap` on `a` after checking its variant with `is_none` |
| --> tests/ui/checked_unwrap/if_let_chains.rs:20:42 |
| | |
| LL | if a.is_none() || b.is_none() { |
| | ----------- the check is happening here |
| ... |
| LL | println!("the value of a is {}", a.unwrap()); |
| | ^^^^^^^^^^ |
| | |
| = help: try using `if let` or `match` |
| |
| error: aborting due to 2 previous errors |
| |