Implement IntoResponse for Body

This commit is contained in:
David Pedersen 2021-07-22 21:22:46 +02:00
parent 1fb80a1129
commit f25f7f90ff

View file

@ -59,6 +59,12 @@ impl IntoResponse for Response<Body> {
}
}
impl IntoResponse for Body {
fn into_response(self) -> Response<Body> {
Response::new(self)
}
}
impl IntoResponse for &'static str {
#[inline]
fn into_response(self) -> Response<Body> {