From 3733c096fc2ff837ad28ed487ef9cccff4d1e1ed Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 11 Jan 2019 15:30:30 -0800 Subject: refactor out OtherBadRequest (just use BadRequest) --- rust/src/errors.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rust/src/errors.rs') 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 for FatcatError { /// Format an error as an API response (ErrorResponse model, used by all HTTP 4xx and 5xx -- cgit v1.2.3