From 3ca568131e0b88e1b324d80e7939930f1acc12b7 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Fri, 15 May 2026 09:02:53 -0700 Subject: [PATCH] fix Stock -> Stock instruction not appearing in KlondikeIter --- src/klondike.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/klondike.rs b/src/klondike.rs index fbd78e6..4b4720e 100644 --- a/src/klondike.rs +++ b/src/klondike.rs @@ -157,8 +157,9 @@ impl KlondikeIter { impl Iterator for KlondikeIter { type Item = KlondikeInstruction; fn next(&mut self) -> Option { - self.instruction = self.instruction?.next(); - self.instruction + let instruction = self.instruction; + self.instruction = instruction?.next(); + instruction } }