Commit 291fa80
committed
Take an opportunity to use Option::ok_or_else
I did quite a bit of this in the transcoder, but never thought to check
elsewhere until I saw clippy::option_if_let_else. Sadly, its suggestion
is the unreadable Option::map_or_else rather than this simpler form.
That makes me disinclined to enable this across the board.1 parent 35a58f3 commit 291fa80
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 368 | + | |
372 | 369 | | |
373 | 370 | | |
374 | 371 | | |
| |||
0 commit comments