modes:*: cleanup
This commit is contained in:
@@ -22,6 +22,7 @@ pub trait Hand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
use crate::card::{Card, PlayingCard};
|
use crate::{
|
||||||
use crate::helper::ordered;
|
card::{Card, PlayingCard},
|
||||||
|
helper::ordered,
|
||||||
|
};
|
||||||
|
|
||||||
#[derive(Eq, Debug, Copy, Clone)]
|
#[derive(Eq, Debug, Copy, Clone)]
|
||||||
pub struct Pair(pub Card, pub Card);
|
pub struct Pair(pub Card, pub Card);
|
||||||
@@ -39,8 +41,7 @@ impl Pair {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
use crate::modes::single::Single;
|
use crate::modes::{single::Single, Footstool, Hand};
|
||||||
use crate::modes::{Footstool, Hand};
|
|
||||||
|
|
||||||
impl Hand for Pair {
|
impl Hand for Pair {
|
||||||
fn is_proper(&self) -> bool {
|
fn is_proper(&self) -> bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user