on master help sign in
clippy lint
bd0f6c1Blaž Hrastnik
helix-term/src/ui/mod.rs+1−1
@@ -194,7 +194,7 @@ pub mod completers {
194 .collect();
194 .collect();
195
195
196 matches.sort_unstable_by_key(|(_file, score)| Reverse(*score));
196 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();
198
198
199 // TODO: complete to longest common match
199 // TODO: complete to longest common match
200 }
200 }
helix-term/src/ui/popup.rs+1−3
@@ -57,9 +57,7 @@ impl Component for Popup {
57 | KeyEvent {
57 | KeyEvent {
58 code: KeyCode::Char('c'),
58 code: KeyCode::Char('c'),
59 modifiers: KeyModifiers::CONTROL,
59 modifiers: KeyModifiers::CONTROL,
60− } => {
61− return close_fn;
60+ } => close_fn,
62− }
63 _ => self.contents.handle_event(event, cx),
61 _ => self.contents.handle_event(event, cx),
64 }
62 }
65 // for some events, we want to process them but send ignore, specifically all input except
63 // for some events, we want to process them but send ignore, specifically all input except