card|classifier: young clippy up in this mf

This commit is contained in:
2026-04-01 03:42:42 +01:00
committed by oreodave
parent ee6f9c7140
commit dd0011d1f2
2 changed files with 8 additions and 8 deletions

View File

@@ -37,14 +37,14 @@ impl Card {
pub fn rank(&self) -> Option<Rank> {
match self {
Self::Joker(_) => None,
Self::PlayingCard { rank: rank, .. } => Some(*rank),
Self::PlayingCard { rank, .. } => Some(*rank),
}
}
pub fn suit(&self) -> Option<Suit> {
match self {
Self::Joker(_) => None,
Self::PlayingCard { suit: suit, .. } => Some(*suit),
Self::PlayingCard { suit, .. } => Some(*suit),
}
}
}