modes:single|pair: make fields of Single and Pair public
So strange that this isn't default for tuple-like constructors. I can kinda get it for record-like constructors, but not for this. Better safe than sorry I guess?
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::card::{Card, PlayingCard};
|
||||
use crate::helper::ordered;
|
||||
|
||||
#[derive(Eq, Debug, Copy, Clone)]
|
||||
pub struct Pair(Card, Card);
|
||||
pub struct Pair(pub Card, pub Card);
|
||||
|
||||
impl Pair {
|
||||
/** Create a new pair utilising two cards, `c1` and `c2`. Will return None
|
||||
|
||||
Reference in New Issue
Block a user