diff options
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 | 
