From bf2d672cfb538b2cf359cdd5559ba1441702d492 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 7 Apr 2024 20:30:52 +1000 Subject: [PATCH] Fix another problem in DoubleEndedIteration implementation of VarRange --- crates/pindakaas/src/helpers.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }