clippy lint

This commit is contained in:
Blaž Hrastnik 2021-03-02 18:25:40 +09:00
parent 0b85c16be9
commit bd0f6c1dfc
2 changed files with 2 additions and 4 deletions

View file

@ -194,7 +194,7 @@ pub mod completers {
.collect(); .collect();
matches.sort_unstable_by_key(|(_file, score)| Reverse(*score)); 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 // TODO: complete to longest common match
} }

View file

@ -57,9 +57,7 @@ impl Component for Popup {
| KeyEvent { | KeyEvent {
code: KeyCode::Char('c'), code: KeyCode::Char('c'),
modifiers: KeyModifiers::CONTROL, modifiers: KeyModifiers::CONTROL,
} => { } => close_fn,
return close_fn;
}
_ => self.contents.handle_event(event, cx), _ => self.contents.handle_event(event, cx),
} }
// for some events, we want to process them but send ignore, specifically all input except // for some events, we want to process them but send ignore, specifically all input except