silence clippy default lint

This commit is contained in:
2026-05-18 11:45:12 -07:00
parent 85132d3c59
commit a4546ba03c
+2 -2
View File
@@ -168,7 +168,7 @@ impl Card {
}
}
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)]
pub struct Stack<const CAP: usize>(arrayvec::ArrayVec<Card, CAP>);
impl<const CAP: usize> Stack<CAP> {
pub const fn new() -> Self {
@@ -219,7 +219,7 @@ impl<const CAP: usize> IntoIterator for Stack<CAP> {
}
}
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
#[derive(Clone, Debug, Default, Eq, Hash, PartialEq)]
pub struct Pile<const DN: usize, const UP: usize> {
face_down: Stack<DN>,
face_up: Stack<UP>,