From 1dd90dbe5ec228ea737154cdf11f5aee7f80dec8 Mon Sep 17 00:00:00 2001 From: nWacky Date: Mon, 16 Sep 2019 16:47:58 +0300 Subject: [PATCH] Remove `ResponseError` implementantion for `Infallible` --- actix-http/src/error.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/actix-http/src/error.rs b/actix-http/src/error.rs index 9a83d168a..c914f4321 100644 --- a/actix-http/src/error.rs +++ b/actix-http/src/error.rs @@ -166,14 +166,6 @@ impl ResponseError for TimeoutError { } } -/// Return `INTERNAL_SERVER_ERROR` for `std::convert::Infallible` -impl ResponseError for std::convert::Infallible { - fn error_response(&self) -> Response { - // `std::convert::Infallible` should never happen - unreachable!() - } -} - #[derive(Debug, Display)] #[display(fmt = "UnknownError")] struct UnitError;