chiark / gitweb /
errors: Abolish unused OnlineError::InvalidZCoord
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 13:48:47 +0000 (14:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 13:49:31 +0000 (14:49 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
src/error.rs

index db4636a20cd0ac64ca3153130269ed753cd86fe2..ac07981204878eb5ff56b409e56fbeb01517c02f 100644 (file)
@@ -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,
     }
   }
index ea9f155445d464bb01392dfa04f086c867c1a55e..15a3a07193dc60bad21f7d88049684a176cca3f6 100644 (file)
@@ -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}")]