From d9565f27cd73d04da58f9b678a26a8c9d269d134 Mon Sep 17 00:00:00 2001 From: Felix Zeller Date: Sun, 3 Mar 2024 14:49:41 -0500 Subject: [PATCH] fix: cargo fmt --- helix-term/src/handlers/completion.rs | 4 ++-- helix-term/src/ui/completion.rs | 2 +- helix-term/src/ui/editor.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/helix-term/src/handlers/completion.rs b/helix-term/src/handlers/completion.rs index 714743f37a929..d2e6ada09127f 100644 --- a/helix-term/src/handlers/completion.rs +++ b/helix-term/src/handlers/completion.rs @@ -258,7 +258,6 @@ fn request_completion( }) .collect(); - anyhow::Ok((is_incomplete, items)) } }) @@ -322,7 +321,8 @@ fn show_completion( return; } - let completion_area = ui.set_completion(editor, savepoint, items, trigger.pos, size, is_incomplete); + let completion_area = + ui.set_completion(editor, savepoint, items, trigger.pos, size, is_incomplete); let signature_help_area = compositor .find_id::>(SignatureHelp::ID) .map(|signature_help| signature_help.area(size, editor)); diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index afbed1b9d1f7f..4378a4b814ce3 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -105,7 +105,7 @@ pub struct Completion { trigger_offset: usize, filter: String, resolve_handler: tokio::sync::mpsc::Sender, - is_incomplete: bool + is_incomplete: bool, } impl Completion { diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 77f2462d63826..9420687b9f612 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1002,7 +1002,8 @@ impl EditorView { size: Rect, is_incomplete: bool, ) -> Option { - let mut completion = Completion::new(editor, savepoint, items, trigger_offset, is_incomplete); + let mut completion = + Completion::new(editor, savepoint, items, trigger_offset, is_incomplete); if completion.is_empty() { // skip if we got no completion results