fix Stock -> Stock instruction not appearing in KlondikeIter

This commit is contained in:
2026-05-15 09:02:53 -07:00
parent ab3cf9b3f3
commit 3ca568131e
+3 -2
View File
@@ -157,8 +157,9 @@ impl KlondikeIter {
impl Iterator for KlondikeIter {
type Item = KlondikeInstruction;
fn next(&mut self) -> Option<Self::Item> {
self.instruction = self.instruction?.next();
self.instruction
let instruction = self.instruction;
self.instruction = instruction?.next();
instruction
}
}