From a60500b47c81d15c9b970b58b1c871821dbe934a Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 22 Dec 2022 16:46:30 -0500 Subject: Implement proper logging commands --- protocol/src/bridge_engine.rs | 4 ++-- protocol/src/simple_bots.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocol/src') 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") -- cgit v1.2.3