From: Ian Jackson Date: Sun, 28 Feb 2021 21:45:56 +0000 (+0000) Subject: Use type alias OE a bit more X-Git-Tag: otter-0.4.0~259 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=428566b77e82063ec18b4530ce12c116a790d457;p=otter.git Use type alias OE a bit more Signed-off-by: Ian Jackson --- diff --git a/daemon/api.rs b/daemon/api.rs index 986de7f3..11587c62 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -76,8 +76,8 @@ impl From<&OnlineErrorResponse> for rocket::http::Status { ServerFailure(_) => Status::InternalServerError, NoClient | NoPlayer(_) | GameBeingDestroyed => Status::NotFound, - OnlineError::PieceHeld | OnlineError::PieceGone | - OnlineError::OverlappingOccultation + OE::PieceHeld | OE::PieceGone | + OE::OverlappingOccultation => Status::Conflict, InvalidZCoord | BadOperation | BadJSON(_) => Status::BadRequest,