Remove `ResponseError` implementantion for `Infallible`

This commit is contained in:
nWacky 2019-09-16 16:47:58 +03:00
parent ad9ad9c6f2
commit 1dd90dbe5e
1 changed files with 0 additions and 8 deletions

View File

@ -166,14 +166,6 @@ impl<E: ResponseError> ResponseError for TimeoutError<E> {
}
}
/// 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;