modes:*: cleanup

This commit is contained in:
2026-04-04 00:13:32 +01:00
committed by oreodave
parent 892c112433
commit f4cab01195
2 changed files with 6 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ pub trait Hand {
}
}
#[cfg(test)]
mod tests {
use super::*;

View File

@@ -1,5 +1,7 @@
use crate::card::{Card, PlayingCard};
use crate::helper::ordered;
use crate::{
card::{Card, PlayingCard},
helper::ordered,
};
#[derive(Eq, Debug, Copy, Clone)]
pub struct Pair(pub Card, pub Card);
@@ -39,8 +41,7 @@ impl Pair {
}
}
use crate::modes::single::Single;
use crate::modes::{Footstool, Hand};
use crate::modes::{single::Single, Footstool, Hand};
impl Hand for Pair {
fn is_proper(&self) -> bool {