chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d0402
)
Use type alias OE a bit more
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 28 Feb 2021 21:45:56 +0000
(21:45 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/daemon/api.rs
b/daemon/api.rs
index 986de7f33dc93485113c57397ea67a1cc9035613..11587c622a17b5253b7d36695ce50276f61b2f93 100644
(file)
--- 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,
- O
nlineError::PieceHeld | OnlineError
::PieceGone |
- O
nlineError
::OverlappingOccultation
+ O
E::PieceHeld | OE
::PieceGone |
+ O
E
::OverlappingOccultation
=> Status::Conflict,
InvalidZCoord | BadOperation | BadJSON(_)
=> Status::BadRequest,