on master help sign in
clippy lint
commitbd0f6c1dfc2222c828f279c7b60fd20045d9a80a authorBlaž Hrastnik <blaz@mxxn.io> dateTue 2 Mar 2021, 18:25 (6 years ago) parent0b85c16
2 files changed+2−4
helix-term/src/ui/mod.rs+1−1 helix-term/src/ui/popup.rs+1−3
helix-term/src/ui/mod.rs+1−1
@@ -194,7 +194,7 @@ pub mod completers {
194194 .collect();
195195
196196 matches.sort_unstable_by_key(|(_file, score)| Reverse(*score));
197− files = matches.into_iter().map(|(file, _)| file.into()).collect();
197+ files = matches.into_iter().map(|(file, _)| file).collect();
198198
199199 // TODO: complete to longest common match
200200 }
helix-term/src/ui/popup.rs+1−3
@@ -57,9 +57,7 @@ impl Component for Popup {
5757 | KeyEvent {
5858 code: KeyCode::Char('c'),
5959 modifiers: KeyModifiers::CONTROL,
60− } => {
61− return close_fn;
62− }
60+ } => close_fn,
6361 _ => self.contents.handle_event(event, cx),
6462 }
6563 // for some events, we want to process them but send ignore, specifically all input except