Skip to content

Commit

Permalink
Little fix
Browse files Browse the repository at this point in the history
Signed-off-by: slinkydeveloper <[email protected]>
  • Loading branch information
slinkydeveloper committed Oct 31, 2022
1 parent 370511d commit f54c43e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tonic-web/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,7 @@ where

match this.case.as_mut().project() {
CaseProj::GrpcWeb { future, accept } => {
let res = match ready!(future.poll(cx)) {
Ok(b) => b,
Err(e) => return Poll::Ready(Err(e)),
};
let res = ready!(future.poll(cx))?;

Poll::Ready(Ok(coerce_response(res, *accept)))
}
Expand Down

0 comments on commit f54c43e

Please sign in to comment.