about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-04 16:27:23 +0000
committerbors <bors@rust-lang.org>2024-03-04 16:27:23 +0000
commit5214ab557f5571afcb064c3d8b9b41485ebebe60 (patch)
tree634444002023d59bb2c737a9bb26be395d5917b9
parent1cb39050bf38c02fdd1b798ac3f52827884c734d (diff)
parent7322fa02354aa2e27c3229a4a4316789dbf65d98 (diff)
downloadrust-5214ab557f5571afcb064c3d8b9b41485ebebe60.tar.gz
rust-5214ab557f5571afcb064c3d8b9b41485ebebe60.zip
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 https://github.com/rust-lang/rust-clippy/pull/12415 as I made these via the github interface quickly)
changelog: none
-rw-r--r--clippy_lints/src/methods/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 94835912328..8a24ccea3a1 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -3875,6 +3875,7 @@ declare_clippy_lint! {
 }
 
 declare_clippy_lint! {
+    /// ### What it does
     /// 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.
     ///
     /// ### Why is this bad?