mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
clippy lint
This commit is contained in:
parent
d151567192
commit
3b2b9e102d
@ -2324,7 +2324,7 @@ async fn make_format_callback(
|
||||
let view_id = view!(editor).id;
|
||||
if let Some(doc) = editor.document_mut(doc_id) {
|
||||
if doc.version() == doc_version {
|
||||
doc.apply(&Transaction::from(format), view_id);
|
||||
doc.apply(&format, view_id);
|
||||
doc.append_changes_to_history(view_id);
|
||||
if let Modified::SetUnmodified = modified {
|
||||
doc.reset_modified();
|
||||
|
Loading…
Reference in New Issue
Block a user