From 8189791a22554db72fa7e5cd5372ec488216266a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 13 Jul 2021 14:48:47 +0100 Subject: [PATCH] errors: Abolish unused OnlineError::InvalidZCoord Signed-off-by: Ian Jackson --- daemon/api.rs | 2 +- src/error.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon/api.rs b/daemon/api.rs index db4636a2..ac079812 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -80,7 +80,7 @@ impl From<&OnlineErrorResponse> for rocket::http::Status { OE::OverlappingOccultation | OE::Occultation | OE::BadPieceStateForOperation => Status::Conflict, - InvalidZCoord | BadOperation | BadJSON(_) + BadOperation | BadJSON(_) => Status::BadRequest, } } diff --git a/src/error.rs b/src/error.rs index ea9f1554..15a3a071 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,8 +12,6 @@ pub enum OnlineError { NoClient, #[error("player not part of game (removed?)")] NoPlayer(#[from] PlayerNotFound), - #[error("invalid Z coordinate")] - InvalidZCoord, #[error("Server operational problems - consult administrator: {0}")] ServerFailure(#[from] InternalError), #[error("JSON deserialisation error: {0}")] -- 2.30.2