game:deck: Prefer Self over naming the type
This commit is contained in:
@@ -16,7 +16,7 @@ pub enum Reason {
|
||||
|
||||
impl Deck {
|
||||
pub fn new_empty() -> Self {
|
||||
Deck(Vec::new())
|
||||
Self(Vec::new())
|
||||
}
|
||||
|
||||
pub fn new_full(n: usize) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user