From 96edc845063cba53d1ef3808686e29b39c283ccd Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Sun, 31 Mar 2024 01:58:44 +0530 Subject: [PATCH] Remove unneeded return statement --- helix-term/src/ui/popup.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs index 90bd7532ed1a..4f379b4a1d5b 100644 --- a/helix-term/src/ui/popup.rs +++ b/helix-term/src/ui/popup.rs @@ -201,7 +201,7 @@ impl Popup { return EventResult::Ignored(None); } - return match kind { + match kind { MouseEventKind::ScrollDown if self.has_scrollbar => { self.scroll_half_page_down(); EventResult::Consumed(None) @@ -211,7 +211,7 @@ impl Popup { EventResult::Consumed(None) } _ => EventResult::Ignored(None), - }; + } } }