modes:single: make Single::new public
This commit is contained in:
@@ -10,7 +10,7 @@ impl Single {
|
|||||||
The only situation where a card cannot be converted into a Single is if it's
|
The only situation where a card cannot be converted into a Single is if it's
|
||||||
a Joker.
|
a Joker.
|
||||||
*/
|
*/
|
||||||
fn new(c: Card) -> Option<Single> {
|
pub fn new(c: Card) -> Option<Single> {
|
||||||
(!c.is_joker()).then_some(Single(c))
|
(!c.is_joker()).then_some(Single(c))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user