chiark / gitweb /
Use type alias OE a bit more
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Feb 2021 21:45:56 +0000 (21:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Feb 2021 21:45:56 +0000 (21:45 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs

index 986de7f33dc93485113c57397ea67a1cc9035613..11587c622a17b5253b7d36695ce50276f61b2f93 100644 (file)
@@ -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,