mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Appease clippy
This commit is contained in:
parent
c832aa5a49
commit
ae58d813b2
@ -96,11 +96,11 @@ impl<I: Iterator<Item = HighlightEvent>> Iterator for Merge<I> {
|
||||
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<I: Iterator<Item = HighlightEvent>> Iterator for Merge<I> {
|
||||
}
|
||||
(Some(event), None) => {
|
||||
self.next_event = self.iter.next();
|
||||
return Some(event);
|
||||
Some(event)
|
||||
}
|
||||
(None, None) => return None,
|
||||
(None, None) => None,
|
||||
e => unreachable!("{:?}", e),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user