2 Commits

Author SHA1 Message Date
Quaternions 6f42e7d2bb clippy fixes 2026-06-10 20:43:43 -07:00
Quaternions a8106ad0b5 iterators for Tableau and Foundation 2026-06-10 20:43:43 -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 t = self.tableau?;
self.tableau = t.next();
Some(t)
let tableau = self.tableau?;
self.tableau = tableau.next();
Some(tableau)
}
}
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 t = self.foundation?;
self.foundation = t.next();
Some(t)
let foundation = self.foundation?;
self.foundation = foundation.next();
Some(foundation)
}
}
impl IntoIterator for Foundation {