mirror of https://github.com/fafhrd91/actix-web
Remove `ResponseError` implementantion for `Infallible`
This commit is contained in:
parent
ad9ad9c6f2
commit
1dd90dbe5e
|
@ -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)]
|
#[derive(Debug, Display)]
|
||||||
#[display(fmt = "UnknownError")]
|
#[display(fmt = "UnknownError")]
|
||||||
struct UnitError;
|
struct UnitError;
|
||||||
|
|
Loading…
Reference in New Issue