ok_unwrap lint #1435
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-pedantic
Lint: Belongs in the pedantic lint group
Right now the
result_unwrap
andoption_unwrap
lints are allow by default, meaning thatresult.ok().unwrap()
will not be linted, even thoughresult.ok().expect(...)
is.We could also do the same for
result.err().unwrap()
, suggestingunwrap_err
.This seems like a problem that should be addressed with a new lint which is allow by default.
The text was updated successfully, but these errors were encountered: