diff options
| author | Kjetil Orbekk <kj@orbekk.com> | 2022-09-04 17:22:36 -0400 |
|---|---|---|
| committer | Kjetil Orbekk <kj@orbekk.com> | 2022-09-04 17:22:36 -0400 |
| commit | b7180143745c5ebe571936b0116cca403d082e8d (patch) | |
| tree | f61ba100b46e7aca1f05d082706c81be95fb2990 /webapp/src/card.rs | |
| parent | 2f310f54829cb368f407373eb95cd4512992ba9e (diff) | |
Display a full deck of shuffled cards
Diffstat (limited to 'webapp/src/card.rs')
| -rw-r--r-- | webapp/src/card.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/src/card.rs b/webapp/src/card.rs index 071f2d1..4fda0a7 100644 --- a/webapp/src/card.rs +++ b/webapp/src/card.rs @@ -73,7 +73,7 @@ impl fmt::Debug for Rank { } #[derive(PartialEq, Eq, Clone, Copy)] -pub struct Card(Suit, Rank); +pub struct Card(pub Suit, pub Rank); impl fmt::Display for Card { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> { |
