From 3433e7711dc61bf3b656d4a8ccaf1ca32de49fb3 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 21 Apr 2021 16:26:37 +0100 Subject: [PATCH] fix msrv --- actix-http/src/encoding/encoder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-http/src/encoding/encoder.rs b/actix-http/src/encoding/encoder.rs index ecba9cbe2..d5525f985 100644 --- a/actix-http/src/encoding/encoder.rs +++ b/actix-http/src/encoding/encoder.rs @@ -160,10 +160,10 @@ impl> MessageBody for Encoder { } } - let result = ready!(this.body.as_mut().poll_next(cx).map_err(Into::into)); + let result = ready!(this.body.as_mut().poll_next(cx)); match result { - Some(Err(err)) => return Poll::Ready(Some(Err(err))), + Some(Err(err)) => return Poll::Ready(Some(Err(err.into()))), Some(Ok(chunk)) => { if let Some(mut encoder) = this.encoder.take() {