From 428566b77e82063ec18b4530ce12c116a790d457 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 28 Feb 2021 21:45:56 +0000 Subject: [PATCH] Use type alias OE a bit more Signed-off-by: Ian Jackson --- daemon/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.30.2