summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-22 16:46:30 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-22 16:46:30 -0500
commita60500b47c81d15c9b970b58b1c871821dbe934a (patch)
tree684caa791cb737c42ff981c7e9c0f26484e6bacb /protocol
parentf06fb735448926bdcc0e6448644895b4c83a4d1f (diff)
Implement proper logging commands
Diffstat (limited to 'protocol')
-rw-r--r--protocol/src/bridge_engine.rs4
-rw-r--r--protocol/src/simple_bots.rs2
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")