This commit is contained in:
Rob Ede 2021-06-05 17:31:55 +01:00
parent 37573d7fdf
commit df25b43e67
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 1 additions and 3 deletions

View File

@ -133,9 +133,7 @@ where
},
EncoderBodyProj::BoxedStream(ref mut b) => {
match ready!(b.as_pin_mut().poll_next(cx)) {
Some(Err(err)) => {
Poll::Ready(Some(Err(EncoderError::Boxed(err))))
}
Some(Err(err)) => Poll::Ready(Some(Err(EncoderError::Boxed(err)))),
Some(Ok(val)) => Poll::Ready(Some(Ok(val))),
None => Poll::Ready(None),
}