diff --git a/crates/pindakaas/src/helpers.rs b/crates/pindakaas/src/helpers.rs index 8c1203ce4f..7fa1206542 100644 --- a/crates/pindakaas/src/helpers.rs +++ b/crates/pindakaas/src/helpers.rs @@ -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 }