From e6078bf79272e4c1bfbc0493431d1b356d883fac Mon Sep 17 00:00:00 2001 From: Maksym Vorobiov Date: Mon, 10 Feb 2020 15:19:56 +0200 Subject: [PATCH] Fix EncoderBody enum to align with Body::Message --- 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 6530609e1..8a075e8b7 100644 --- a/actix-http/src/encoding/encoder.rs +++ b/actix-http/src/encoding/encoder.rs @@ -83,7 +83,7 @@ impl Encoder { enum EncoderBody { Bytes(Bytes), Stream(#[pin] B), - BoxedStream(#[pin] Box), + BoxedStream(Box), } impl MessageBody for EncoderBody { @@ -107,7 +107,7 @@ impl MessageBody for EncoderBody { } } EncoderBody::Stream(b) => b.poll_next(cx), - EncoderBody::BoxedStream(b) => b.poll_next(cx), + EncoderBody::BoxedStream(ref mut b) => Pin::new(b.as_mut()).poll_next(cx), } } }