Skip to content

Commit da78617

Browse files
Use proper assertion in on-type formatting edits
Co-authored-by: DropDemBits <[email protected]>
1 parent 0f1cde7 commit da78617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ pub(crate) fn handle_on_type_formatting(
354354

355355
// This should be a single-file edit
356356
let (_, (text_edit, snippet_edit)) = edit.source_file_edits.into_iter().next().unwrap();
357-
stdx::never!(snippet_edit.is_none(), "on type formatting shouldn't use structured snippets");
357+
stdx::always!(snippet_edit.is_none(), "on type formatting shouldn't use structured snippets");
358358

359359
let change = to_proto::snippet_text_edit_vec(&line_index, edit.is_snippet, text_edit);
360360
Ok(Some(change))

0 commit comments

Comments
 (0)