From: Ian Jackson Date: Tue, 13 Jul 2021 13:48:47 +0000 (+0100) Subject: errors: Abolish unused OnlineError::InvalidZCoord X-Git-Tag: otter-0.7.2~129 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8189791a22554db72fa7e5cd5372ec488216266a;p=otter.git errors: Abolish unused OnlineError::InvalidZCoord Signed-off-by: Ian Jackson --- 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}")]