This commit is contained in:
Rob Ede 2021-06-05 07:15:50 +01:00
parent cf1fbb3f39
commit 34efdff0de
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -93,7 +93,7 @@ where
InternalErrorType::Response(ref resp) => { InternalErrorType::Response(ref resp) => {
if let Some(resp) = resp.borrow_mut().take() { if let Some(resp) = resp.borrow_mut().take() {
resp.into() resp
} else { } else {
HttpResponse::new(StatusCode::INTERNAL_SERVER_ERROR) HttpResponse::new(StatusCode::INTERNAL_SERVER_ERROR)
} }