From 6f42e7d2bbd706939f1332dac3e5b21ada9cce25 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Wed, 10 Jun 2026 20:40:26 -0700 Subject: [PATCH] clippy fixes --- klondike/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/klondike/src/lib.rs b/klondike/src/lib.rs index 56793d2..e8c2698 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 {