2 Checks for `.unwrap()` or `.unwrap_err()` calls on `Result`s and `.unwrap()` call on `Option`s.
5 It is better to handle the `None` or `Err` case,
6 or at least call `.expect(_)` with a more helpful message. Still, for a lot of
7 quick-and-dirty code, `unwrap` is a good choice, which is why this lint is
10 `result.unwrap()` will let the thread panic on `Err` values.
11 Normally, you want to implement more sophisticated error handling,
12 and propagate errors upwards with `?` operator.
14 Even if you want to panic on errors, not all `Error`s implement good
15 messages on display. Therefore, it may be beneficial to look at the places
16 where they may get displayed. Activate this lint to do just that.
26 option.expect("more helpful message");
27 result.expect("more helpful message");
30 If [expect_used](#expect_used) is enabled, instead: