From ae58d813b2543e6b170456a3587c0493a533279c Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 27 Jun 2021 17:15:35 +0900 Subject: Appease clippy --- helix-term/src/ui/editor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 4c2ec440..f5d33694 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -96,11 +96,11 @@ impl> Iterator for Merge { match (self.next_event, &self.next_span) { (Some(HighlightStart(i)), _) => { self.next_event = self.iter.next(); - return Some(HighlightStart(i)); + Some(HighlightStart(i)) } (Some(HighlightEnd), _) => { self.next_event = self.iter.next(); - return Some(HighlightEnd); + Some(HighlightEnd) } (Some(Source { start, end }), Some((span, range))) if start < range.start => { let intersect = range.start.min(end); @@ -154,9 +154,9 @@ impl> Iterator for Merge { } (Some(event), None) => { self.next_event = self.iter.next(); - return Some(event); + Some(event) } - (None, None) => return None, + (None, None) => None, e => unreachable!("{:?}", e), } } -- cgit v1.2.3-70-g09d2