modes:single: make Single::new public

This commit is contained in:
2026-04-03 05:36:38 +01:00
committed by oreodave
parent 11d5149d35
commit 2d179f0316

View File

@@ -10,7 +10,7 @@ impl Single {
The only situation where a card cannot be converted into a Single is if it's
a Joker.
*/
fn new(c: Card) -> Option<Single> {
pub fn new(c: Card) -> Option<Single> {
(!c.is_joker()).then_some(Single(c))
}
}