Skip to content

Commit

Permalink
Simplify MappedHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
jjant committed Apr 13, 2023
1 parent 7e55d0c commit ca83a2c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ impl<R, S: Service<R>, F: Future<Output = S::Response>> Future for MappedHandler
type Output = Result<S::Response, S::Error>;

fn poll(self: std::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let inner = self.project().inner;
let res = inner.poll(cx);

res.map(Ok)
self.project().inner.poll(cx).map(Ok)
}
}

Expand Down

0 comments on commit ca83a2c

Please sign in to comment.