game:deck: Prefer Self over naming the type

This commit is contained in:
2026-04-16 18:52:25 +01:00
parent 8541ee00ea
commit 6d1653bb4e

View File

@@ -16,7 +16,7 @@ pub enum Reason {
impl Deck { impl Deck {
pub fn new_empty() -> Self { pub fn new_empty() -> Self {
Deck(Vec::new()) Self(Vec::new())
} }
pub fn new_full(n: usize) -> Self { pub fn new_full(n: usize) -> Self {