Skip to content

Commit

Permalink
Fix another problem in DoubleEndedIteration implementation of VarRange
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Apr 7, 2024
1 parent 55fb1bd commit bf2d672
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/pindakaas/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,10 @@ impl DoubleEndedIterator for VarRange {
let item = self.end;
if let Some(prev) = self.end.prev_var() {
self.end = prev;
Some(item)
} else {
*self = VarRange::empty();
None
}
Some(item)
} else {
None
}
Expand Down

0 comments on commit bf2d672

Please sign in to comment.