From 7f8e826be4208c1d38867d68467ea9be4ce0453e Mon Sep 17 00:00:00 2001 From: Daniel Ebert Date: Sun, 1 Jan 2023 19:49:52 +0100 Subject: [PATCH] Fix clippy lints --- helix-core/src/indent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index 102e5323f6f0e..150fb2a62132e 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -437,7 +437,7 @@ fn query_indents( // The alignment will be updated to the correct value at the end, when the anchor is known. "align" => IndentCaptureType::Align((0, 0)), "anchor" => { - if let Some(_) = anchor { + if anchor.is_some() { log::warn!("Invalid indent query: Encountered more than one @anchor in the same match.") } else { anchor = Some(capture.node);