Skip to content

Commit 5214ab5

Browse files
committed
Auto merge of #12416 - Veykril:patch-2, r=blyxyas
Add missing header for `manual_is_variant_and` Noticed this while generating our lint completions failed in rust-analyzer (separate PR from #12415 as I made these via the github interface quickly) changelog: none
2 parents 1cb3905 + 7322fa0 commit 5214ab5

File tree

1 file changed

+1
-0
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-0
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,7 @@ declare_clippy_lint! {
38753875
}
38763876

38773877
declare_clippy_lint! {
3878+
/// ### What it does
38783879
/// Checks for usage of `option.map(f).unwrap_or_default()` and `result.map(f).unwrap_or_default()` where f is a function or closure that returns the `bool` type.
38793880
///
38803881
/// ### Why is this bad?

0 commit comments

Comments
 (0)