diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 15:30:30 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-11 15:30:30 -0800 |
commit | 3733c096fc2ff837ad28ed487ef9cccff4d1e1ed (patch) | |
tree | fdde450c2e078612742b2f3e7afd641e8ddab6c0 /rust/src/errors.rs | |
parent | 011deddfd53abf0eb13fbe292c1a175e1d8fdf7e (diff) | |
download | fatcat-3733c096fc2ff837ad28ed487ef9cccff4d1e1ed.tar.gz fatcat-3733c096fc2ff837ad28ed487ef9cccff4d1e1ed.zip |
refactor out OtherBadRequest (just use BadRequest)
Diffstat (limited to 'rust/src/errors.rs')
-rw-r--r-- | rust/src/errors.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/src/errors.rs b/rust/src/errors.rs index ec2b949b..08e79d51 100644 --- a/rust/src/errors.rs +++ b/rust/src/errors.rs @@ -93,11 +93,7 @@ pub enum FatcatError { #[fail(display = "unexpected internal error: {}", _0)] // Fmt, Io, Serde, InternalError(String), - - // TODO: backwards compat; need to refactor out - #[fail(display = "unexpected internal error: {}", _0)] - OtherBadRequest(String), // NOTE: this enum is not exhaustive and shouldn't be matched over! -} +} // NOTE: this enum is not exhaustive and shouldn't be matched over! impl Into<models::ErrorResponse> for FatcatError { /// Format an error as an API response (ErrorResponse model, used by all HTTP 4xx and 5xx |