1 error: called `ok().expect()` on a `Result` value
2 --> $DIR/ok_expect.rs:14:5
4 LL | res.ok().expect("disaster!");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::ok-expect` implied by `-D warnings`
8 = help: you can call `expect()` directly on the `Result`
10 error: called `ok().expect()` on a `Result` value
11 --> $DIR/ok_expect.rs:20:5
13 LL | res3.ok().expect("whoof");
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 = help: you can call `expect()` directly on the `Result`
18 error: called `ok().expect()` on a `Result` value
19 --> $DIR/ok_expect.rs:22:5
21 LL | res4.ok().expect("argh");
22 | ^^^^^^^^^^^^^^^^^^^^^^^^
24 = help: you can call `expect()` directly on the `Result`
26 error: called `ok().expect()` on a `Result` value
27 --> $DIR/ok_expect.rs:24:5
29 LL | res5.ok().expect("oops");
30 | ^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: you can call `expect()` directly on the `Result`
34 error: called `ok().expect()` on a `Result` value
35 --> $DIR/ok_expect.rs:26:5
37 LL | res6.ok().expect("meh");
38 | ^^^^^^^^^^^^^^^^^^^^^^^
40 = help: you can call `expect()` directly on the `Result`
42 error: aborting due to 5 previous errors