add UNNECESSARY_LAZY_EVALUATIONS to msrv
UNNECESSARY_LAZY_EVALUATIONS uses msrvs::BOOL_THEN_SOME for `then` to `then_some`
This commit is contained in:
parent
a05e86f5dd
commit
532841fcae
3 changed files with 3 additions and 1 deletions
|
|
@ -1818,6 +1818,7 @@ declare_clippy_lint! {
|
|||
/// - `or_else` to `or`
|
||||
/// - `get_or_insert_with` to `get_or_insert`
|
||||
/// - `ok_or_else` to `ok_or`
|
||||
/// - `then` to `then_some` (for msrv >= 1.62.0)
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// Using eager evaluation is shorter and simpler in some cases.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue