style(lsp): apply rustfmt to commands.rs
CI / cargo fmt --check (push) Successful in 22s
CI / cargo clippy (push) Successful in 24s
CI / cargo test (push) Failing after 31s
CI / editor keymaps (push) Has been skipped

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 19:27:22 +00:00
parent e849ac9d1f
commit ab6b5f6d73
+6 -9
View File
@@ -1191,7 +1191,10 @@ fn workspace_find_orphans(backend: &Backend, args: Vec<Value>) -> Result<Option<
col = (i + 1 - last_nl_col as usize) as u32;
}
}
LspPosition { line, character: col }
LspPosition {
line,
character: col,
}
}
// ===== Pure operations =====
@@ -1877,10 +1880,7 @@ fn workspace_find_orphans(backend: &Backend, args: Vec<Value>) -> Result<Option<
None => {
let with_sep = format!("{new_text}\n");
let insert_pos = eof_position(text);
b.edit(
uri.clone(),
text_edit_insert(insert_pos, with_sep),
);
b.edit(uri.clone(), text_edit_insert(insert_pos, with_sep));
}
}
Some(b.build())
@@ -2947,10 +2947,7 @@ fn workspace_find_orphans(backend: &Backend, args: Vec<Value>) -> Result<Option<
None => {
let with_sep = format!("{body}\n");
let insert_pos = eof_position(text);
b.edit(
uri.clone(),
text_edit_insert(insert_pos, with_sep),
);
b.edit(uri.clone(), text_edit_insert(insert_pos, with_sep));
}
}
Some(b.build())