fix Stock -> Stock instruction not appearing in KlondikeIter
This commit is contained in:
+3
-2
@@ -157,8 +157,9 @@ impl KlondikeIter {
|
|||||||
impl Iterator for KlondikeIter {
|
impl Iterator for KlondikeIter {
|
||||||
type Item = KlondikeInstruction;
|
type Item = KlondikeInstruction;
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
self.instruction = self.instruction?.next();
|
let instruction = self.instruction;
|
||||||
self.instruction
|
self.instruction = instruction?.next();
|
||||||
|
instruction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user