Skip to content

ok_unwrap lint #1435

@clarfonthey

Description

@clarfonthey

Right now the result_unwrap and option_unwrap lints are allow by default, meaning that result.ok().unwrap() will not be linted, even though result.ok().expect(...) is.

We could also do the same for result.err().unwrap(), suggesting unwrap_err.

This seems like a problem that should be addressed with a new lint which is allow by default.

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsL-pedanticLint: Belongs in the pedantic lint groupgood first issueThese issues are a good way to get started with Clippy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions