1 error: called `ok().expect()` on a `Result` value
2 --> $DIR/ok_expect.rs:16:5
4 LL | res.ok().expect("disaster!");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = help: you can call `expect()` directly on the `Result`
8 = note: `-D clippy::ok-expect` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::ok_expect)]`
11 error: called `ok().expect()` on a `Result` value
12 --> $DIR/ok_expect.rs:23:5
14 LL | res3.ok().expect("whoof");
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^
17 = help: you can call `expect()` directly on the `Result`
19 error: called `ok().expect()` on a `Result` value
20 --> $DIR/ok_expect.rs:26:5
22 LL | res4.ok().expect("argh");
23 | ^^^^^^^^^^^^^^^^^^^^^^^^
25 = help: you can call `expect()` directly on the `Result`
27 error: called `ok().expect()` on a `Result` value
28 --> $DIR/ok_expect.rs:29:5
30 LL | res5.ok().expect("oops");
31 | ^^^^^^^^^^^^^^^^^^^^^^^^
33 = help: you can call `expect()` directly on the `Result`
35 error: called `ok().expect()` on a `Result` value
36 --> $DIR/ok_expect.rs:32:5
38 LL | res6.ok().expect("meh");
39 | ^^^^^^^^^^^^^^^^^^^^^^^
41 = help: you can call `expect()` directly on the `Result`
43 error: aborting due to 5 previous errors