clippy and fmt fixes

This commit is contained in:
Josh Thomas 2025-09-09 09:34:19 -05:00
parent b9845f2733
commit 076b36c66d

View file

@ -407,8 +407,9 @@ fn generate_tag_name_completions(
// Add closing based on what's already present
match closing {
ClosingBrace::None => insert_text.push_str(" %}"),
ClosingBrace::PartialClose => insert_text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::PartialClose | ClosingBrace::None => {
insert_text.push_str(" %}");
}
ClosingBrace::FullClose => {} // No closing needed
}
@ -456,8 +457,9 @@ fn generate_tag_name_completions(
if !snippet.contains("%}") {
// Add closing based on what's already present
match closing {
ClosingBrace::None => text.push_str(" %}"),
ClosingBrace::PartialClose => text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::PartialClose | ClosingBrace::None => {
text.push_str(" %}");
}
ClosingBrace::FullClose => {} // No closing needed
}
}
@ -542,8 +544,7 @@ fn generate_argument_completions(
// Add closing if needed
match closing {
ClosingBrace::None => insert_text.push_str(" %}"),
ClosingBrace::PartialClose => insert_text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::PartialClose | ClosingBrace::None => insert_text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::FullClose => {} // No closing needed
}
@ -712,8 +713,7 @@ fn build_plain_insert_for_tag(
// Add closing based on what's already present
match closing {
ClosingBrace::None => insert_text.push_str(" %}"),
ClosingBrace::PartialClose => insert_text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::PartialClose | ClosingBrace::None => insert_text.push_str(" %}"), // Include full closing since we're replacing the auto-paired }
ClosingBrace::FullClose => {} // No closing needed
}