mirror of https://github.com/fafhrd91/actix-web
clippy
This commit is contained in:
parent
cf1fbb3f39
commit
34efdff0de
|
@ -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),
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue