]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/ok_if_let.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / ok_if_let.stderr
1 error: Matching on `Some` with `ok()` is redundant
2   --> ok_if_let.rs:7:5
3    |
4 7  | /     if let Some(y) = x.parse().ok() {
5 8  | |         y
6 9  | |     } else {
7 10 | |         0
8 11 | |     }
9    | |_____^
10    |
11    = note: `-D 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(s)
15
16
17 To learn more, run the command again with --verbose.