This commit is contained in:
Rob Ede 2021-04-21 16:26:37 +01:00
parent 2b818be18f
commit 3433e7711d
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 2 deletions

View File

@ -160,10 +160,10 @@ impl<B: MessageBody<Error = Error>> MessageBody for Encoder<B> {
}
}
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() {