add UNNECESSARY_LAZY_EVALUATIONS to msrv

UNNECESSARY_LAZY_EVALUATIONS uses msrvs::BOOL_THEN_SOME for `then` to
`then_some`
This commit is contained in:
koka 2023-01-29 02:02:46 +09:00
parent a05e86f5dd
commit 532841fcae
No known key found for this signature in database
GPG key ID: A5917A40697774CD
3 changed files with 3 additions and 1 deletions

View file

@ -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.