mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-30 00:35:26 +03:00
clippy lint
This commit is contained in:
parent
0b85c16be9
commit
bd0f6c1dfc
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user