This commit is contained in:
Rob Ede 2021-08-31 03:53:37 +01:00
parent 26c8b41c21
commit d1ea64b392
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ where
let next =
match this.body.as_mut().as_pin_mut().unwrap().poll_next(cx) {
Poll::Ready(Some(Ok(item))) => Poll::Ready(Some(item)),
Poll::Ready(Some(Err(err))) => return Poll::Ready(Err(err.into())),
Poll::Ready(Some(Err(err))) => {
return Poll::Ready(Err(err.into()))
}
Poll::Ready(None) => Poll::Ready(None),
Poll::Pending => Poll::Pending,
};