diff --git a/klondike/src/lib.rs b/klondike/src/lib.rs index 0615a1e..93a1746 100644 --- a/klondike/src/lib.rs +++ b/klondike/src/lib.rs @@ -174,6 +174,11 @@ impl TableauIter { } } } +impl Default for TableauIter { + fn default() -> Self { + Self::new() + } +} impl Iterator for TableauIter { type Item = Tableau; fn next(&mut self) -> Option { @@ -221,6 +226,11 @@ impl FoundationIter { } } } +impl Default for FoundationIter { + fn default() -> Self { + Self::new() + } +} impl Iterator for FoundationIter { type Item = Foundation; fn next(&mut self) -> Option {