summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/play.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/play.rs b/server/src/play.rs
index d15d64c..a825ece 100644
--- a/server/src/play.rs
+++ b/server/src/play.rs
@@ -2,7 +2,7 @@ use async_trait::async_trait;
use protocol::{
bot::{BiddingBot, PlayingBot},
bridge_engine::{
- Bid, BiddingStatePlayerView, Deal, GameResult, GameState,
+ Bid, BiddingStatePlayerView, Deal, PlayResult, GameState,
PlayStatePlayerView, Player, TableState,
},
card::Card,
@@ -154,7 +154,7 @@ impl<J: Journal<TableUpdate>> Table<J> {
}
}
- pub fn result(&self) -> Result<&GameResult, BridgeError> {
+ pub fn result(&self) -> Result<&PlayResult, BridgeError> {
match &self.state {
TableState::Result(r) => Ok(r),
_ => Err(BridgeError::InvalidRequest("no result".to_string())),