aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/popup.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-02 09:25:40 +0000
committerBlaž Hrastnik2021-03-02 09:29:15 +0000
commitbd0f6c1dfc2222c828f279c7b60fd20045d9a80a (patch)
tree306732f5f9fbae65b8b06414db9b1055b93cdd5d /helix-term/src/ui/popup.rs
parent0b85c16be91d9326876b2e4a1ae6bdc1381d700d (diff)
clippy lint
Diffstat (limited to 'helix-term/src/ui/popup.rs')
-rw-r--r--helix-term/src/ui/popup.rs4
1 files changed, 1 insertions, 3 deletions
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