clippy lint

This commit is contained in:
Blaž Hrastnik 2022-04-05 16:07:16 +09:00
parent d151567192
commit 3b2b9e102d
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

View File

@ -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();