Commit f96fb4d
committed
Deny clippy::unwrap_used
You must either use expect() with a proper message, or do something that
won't panic.
I saw some crates (for an unrelated project idea) advertise this in
their docs, and it made me think of that bug I found by fuzzing the YAML
chunker. The next level would be to remove expect() too and promise
never to panic, but I don't know if I want to go all the way there.
My expect() uses all seem pretty reasonable.1 parent d4c860f commit f96fb4d
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments