Compare commits
2 Commits
master
..
b6861747a7
| Author | SHA1 | Date | |
|---|---|---|---|
| b6861747a7 | |||
| b34373750b |
+6
-6
@@ -182,9 +182,9 @@ impl Default for TableauIter {
|
||||
impl Iterator for TableauIter {
|
||||
type Item = Tableau;
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let tableau = self.tableau?;
|
||||
self.tableau = tableau.next();
|
||||
Some(tableau)
|
||||
let t = self.tableau?;
|
||||
self.tableau = t.next();
|
||||
Some(t)
|
||||
}
|
||||
}
|
||||
impl IntoIterator for Tableau {
|
||||
@@ -234,9 +234,9 @@ impl Default for FoundationIter {
|
||||
impl Iterator for FoundationIter {
|
||||
type Item = Foundation;
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let foundation = self.foundation?;
|
||||
self.foundation = foundation.next();
|
||||
Some(foundation)
|
||||
let t = self.foundation?;
|
||||
self.foundation = t.next();
|
||||
Some(t)
|
||||
}
|
||||
}
|
||||
impl IntoIterator for Foundation {
|
||||
|
||||
Reference in New Issue
Block a user