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,