manual_is_variant_and
should also trigger for some_option.map(|x| x.is_foo) == Some(true)
#14542
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
See title :)
Lint Name
manual_is_variant_and
Reproducer
I tried this code:
I expected to see this happen:
Suggestion to use
let x = Some(2).is_some_and(|x| x % 2 == 0);
Instead, this happened:
Nothing
Version
The text was updated successfully, but these errors were encountered: