2 Commits

Author SHA1 Message Date
Quaternions b6861747a7 clippy fixes 2026-06-10 20:42:02 -07:00
Quaternions b34373750b iterators for Tableau and Foundation 2026-06-10 20:39:05 -07:00
+6 -6
View File
@@ -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 {