]> git.lizzy.rs Git - rust.git/blob - tests/ui/ok_if_let.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / ok_if_let.stderr
1 error: Matching on `Some` with `ok()` is redundant
2   --> $DIR/ok_if_let.rs:4:5
3    |
4 LL | /     if let Some(y) = x.parse().ok() {
5 LL | |         y
6 LL | |     } else {
7 LL | |         0
8 LL | |     }
9    | |_____^
10    |
11    = note: `-D clippy::if-let-some-result` implied by `-D warnings`
12    = help: Consider matching on `Ok(y)` and removing the call to `ok` instead
13
14 error: aborting due to previous error
15