]> git.lizzy.rs Git - rust.git/blob - tests/ui/ok_if_let.stderr
Merge pull request #3265 from mikerite/fix-export
[rust.git] / tests / ui / ok_if_let.stderr
1 error: Matching on `Some` with `ok()` is redundant
2   --> $DIR/ok_if_let.rs:17:5
3    |
4 17 | /     if let Some(y) = x.parse().ok() {
5 18 | |         y
6 19 | |     } else {
7 20 | |         0
8 21 | |     }
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