From 4c12f828c71f577f59f84c9fdf89ebca2b6c2591 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 16 Nov 2021 17:27:01 +0000 Subject: [PATCH] fix error bound on impl messagebody for anybody --- actix-http/src/body/body.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)