1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 09:23:54 +00: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,