You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With bool::then_some stabilized in Rust 1.62, uses of bool::then with a closure consisting of a simple body without side effects should become bool::then_some.
This should be part of the existing unnecessary_lazy_evaluations.
What it does
With
bool::then_some
stabilized in Rust 1.62, uses ofbool::then
with a closure consisting of a simple body without side effects should becomebool::then_some
.This should be part of the existing
unnecessary_lazy_evaluations
.Lint Name
unnecessary_lazy_evaluations
Category
style
Advantage
No response
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: