From 3b2b9e102d8cf17cc7355e0f405cd7f28a42f34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 5 Apr 2022 16:07:16 +0900 Subject: [PATCH] clippy lint --- helix-view/src/commands/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/commands/mod.rs b/helix-view/src/commands/mod.rs index 82ecdcf8b..07c8fd9fe 100644 --- a/helix-view/src/commands/mod.rs +++ b/helix-view/src/commands/mod.rs @@ -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();