Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Triton171 committed Mar 25, 2023
1 parent 14f5999 commit 7f8e826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-core/src/indent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f8e826

Please sign in to comment.