diff options
Diffstat (limited to 'protocol')
-rw-r--r-- | protocol/src/bridge_engine.rs | 4 | ||||
-rw-r--r-- | protocol/src/simple_bots.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocol/src/bridge_engine.rs b/protocol/src/bridge_engine.rs index a2766f0..7699a22 100644 --- a/protocol/src/bridge_engine.rs +++ b/protocol/src/bridge_engine.rs @@ -741,7 +741,7 @@ impl GameState { } } -#[derive(Debug)] +#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)] pub struct GameResult; #[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)] @@ -1188,7 +1188,7 @@ mod tests { #[test] fn pass_out_bid() { let mut bidding = Bidding::new(random()); - for i in 0..3 { + for _i in 0..3 { bidding = as_bidding(bidding.bid(Bid::Pass).unwrap()); assert!(!bidding.passed_out()); } diff --git a/protocol/src/simple_bots.rs b/protocol/src/simple_bots.rs index 7cc2ce8..3df7b5d 100644 --- a/protocol/src/simple_bots.rs +++ b/protocol/src/simple_bots.rs @@ -84,7 +84,7 @@ mod tests { assert_eq!(card1.suit(), card2.suit()); - let play_state = match play_state.play(card2).unwrap() { + let _play_state = match play_state.play(card2).unwrap() { PlayStateResult::InProgress(p) => p, PlayStateResult::PlayFinished(_) => { panic!("game should not be over") |