fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: called `ok().expect()` on a `Result` value 2 --> $DIR/ok_expect.rs:16:5 3 | 4LL | res.ok().expect("disaster!"); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 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)]` 10 11error: called `ok().expect()` on a `Result` value 12 --> $DIR/ok_expect.rs:23:5 13 | 14LL | res3.ok().expect("whoof"); 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | 17 = help: you can call `expect()` directly on the `Result` 18 19error: called `ok().expect()` on a `Result` value 20 --> $DIR/ok_expect.rs:26:5 21 | 22LL | res4.ok().expect("argh"); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: you can call `expect()` directly on the `Result` 26 27error: called `ok().expect()` on a `Result` value 28 --> $DIR/ok_expect.rs:29:5 29 | 30LL | res5.ok().expect("oops"); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: you can call `expect()` directly on the `Result` 34 35error: called `ok().expect()` on a `Result` value 36 --> $DIR/ok_expect.rs:32:5 37 | 38LL | res6.ok().expect("meh"); 39 | ^^^^^^^^^^^^^^^^^^^^^^^ 40 | 41 = help: you can call `expect()` directly on the `Result` 42 43error: aborting due to 5 previous errors 44