fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: used `expect()` on an `Option` value 2 --> $DIR/expect.rs:6:13 3 | 4LL | let _ = opt.expect(""); 5 | ^^^^^^^^^^^^^^ 6 | 7 = note: if this value is `None`, it will panic 8 = note: `-D clippy::expect-used` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::expect_used)]` 10 11error: used `expect()` on a `Result` value 12 --> $DIR/expect.rs:12:13 13 | 14LL | let _ = res.expect(""); 15 | ^^^^^^^^^^^^^^ 16 | 17 = note: if this value is an `Err`, it will panic 18 19error: used `expect_err()` on a `Result` value 20 --> $DIR/expect.rs:14:13 21 | 22LL | let _ = res.expect_err(""); 23 | ^^^^^^^^^^^^^^^^^^ 24 | 25 = note: if this value is an `Ok`, it will panic 26 27error: aborting due to 3 previous errors 28