rust-clippy
rust-clippy copied to clipboard
Add lint `manual_option_folding`
Closes #10646
This lint checks for panicking unwrap methods (unwrap
, unwrap_unchecked
, expect
) used after get_or_insert_with
.
changelog: new lint: [manual_option_folding
]