aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-11 07:15:54 +0000
committerBlaž Hrastnik2021-03-11 07:15:54 +0000
commitc7ccb432ef174e2eeadafe19dfb8b7c978062dc8 (patch)
tree5119fddcad15092c8cf274eaf8386fb69d1a4302 /helix-term/src/ui
parent4acf30102282584e31d8ac9a7a69e45acbdd64ec (diff)
pass clippy lint
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/popup.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs
index 0dbb3a24..572c651b 100644
--- a/helix-term/src/ui/popup.rs
+++ b/helix-term/src/ui/popup.rs
@@ -80,14 +80,14 @@ impl Component for Popup {
modifiers: KeyModifiers::CONTROL,
} => {
self.scroll(self.size.1 as usize / 2, true);
- return EventResult::Consumed(None);
+ EventResult::Consumed(None)
}
KeyEvent {
code: KeyCode::Char('u'),
modifiers: KeyModifiers::CONTROL,
} => {
self.scroll(self.size.1 as usize / 2, false);
- return EventResult::Consumed(None);
+ EventResult::Consumed(None)
}
_ => self.contents.handle_event(event, cx),
}