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:
parent
200cae19a9
commit
0d2116156a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user