1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

Messagebody constraint is not required from Response::into_body

This commit is contained in:
Nikolay Kim 2019-03-05 17:24:24 -08:00
parent 200cae19a9
commit 0d2116156a

View File

@ -80,7 +80,7 @@ impl Response<Body> {
}
/// Convert response to response with body
pub fn into_body<B: MessageBody>(self) -> Response<B> {
pub fn into_body<B>(self) -> Response<B> {
let b = match self.body {
ResponseBody::Body(b) => b,
ResponseBody::Other(b) => b,