Suggest Option::is_some_and(...)
instead of map_or(false, ...)
and similar for Result
s
#12958
Labels
A-lint
Area: New lints
What it does
Given the following code
it would suggest
Not sure if there's something meaningful around
Result::is_err_and()
that can be transformed in the same wayAdvantage
Shorter and more descriptive
Drawbacks
Requires MSRV 1.70
Example
See example in initial description
The text was updated successfully, but these errors were encountered: