diff --git a/actix-http/src/body/body.rs b/actix-http/src/body/body.rs index 26dd5a492..a75bac728 100644 --- a/actix-http/src/body/body.rs +++ b/actix-http/src/body/body.rs @@ -79,7 +79,7 @@ where impl MessageBody for AnyBody where B: MessageBody + Unpin, - B::Error: StdError + 'static, + B::Error: Into> + 'static, { type Error = Error; @@ -192,7 +192,7 @@ impl From for AnyBody { impl From> for AnyBody where S: Stream> + 'static, - E: StdError + 'static, + E: Into> + 'static, { fn from(stream: SizedStream) -> Body { AnyBody::new_boxed(stream) @@ -202,7 +202,7 @@ where impl From> for AnyBody where S: Stream> + 'static, - E: StdError + 'static, + E: Into> + 'static, { fn from(stream: BodyStream) -> Body { AnyBody::new_boxed(stream)