diff --git a/actix-http/src/error.rs b/actix-http/src/error.rs index e1da871da..90c35e486 100644 --- a/actix-http/src/error.rs +++ b/actix-http/src/error.rs @@ -134,7 +134,8 @@ impl std::error::Error for Error { impl From for Error { fn from(_: std::convert::Infallible) -> Self { - // `std::convert::Infallible` should never happen + // `std::convert::Infallible` indicates an error + // that will never happen unreachable!() } }