From bd0f6c1dfc2222c828f279c7b60fd20045d9a80a Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 2 Mar 2021 18:25:40 +0900 Subject: clippy lint --- helix-term/src/ui/mod.rs | 2 +- helix-term/src/ui/popup.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 4fbdd550..463ac368 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -194,7 +194,7 @@ pub mod completers { .collect(); matches.sort_unstable_by_key(|(_file, score)| Reverse(*score)); - files = matches.into_iter().map(|(file, _)| file.into()).collect(); + files = matches.into_iter().map(|(file, _)| file).collect(); // TODO: complete to longest common match } diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index ba32e6b5..e0f7a5c0 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -57,9 +57,7 @@ impl Component for Popup { | KeyEvent { code: KeyCode::Char('c'), modifiers: KeyModifiers::CONTROL, - } => { - return close_fn; - } + } => close_fn, _ => self.contents.handle_event(event, cx), } // for some events, we want to process them but send ignore, specifically all input except -- cgit v1.2.3-70-g09d2