From a4546ba03cb9257ede1055969b8c5a66137f9327 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Mon, 18 May 2026 11:45:12 -0700 Subject: [PATCH] silence clippy default lint --- card_game/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index 8f4eab3..0091fcc 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -168,7 +168,7 @@ impl Card { } } -#[derive(Clone, Debug, Eq, Hash, PartialEq)] +#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)] pub struct Stack(arrayvec::ArrayVec); impl Stack { pub const fn new() -> Self { @@ -219,7 +219,7 @@ impl IntoIterator for Stack { } } -#[derive(Clone, Debug, Eq, Hash, PartialEq)] +#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)] pub struct Pile { face_down: Stack, face_up: Stack,