Skip to content

Commit

Permalink
chore(transport): Remove redundant type reconstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Feb 5, 2025
1 parent 78be69e commit 9340dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tonic/src/transport/service/grpc_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ where
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();

if let Poll::Ready(result) = this.inner.poll(cx) {
return Poll::Ready(result.map_err(Into::into));
if let ready @ Poll::Ready(_) = this.inner.poll(cx) {
return ready.map_err(Into::into);
}

if let Some(sleep) = this.sleep.as_pin_mut() {
Expand Down

0 comments on commit 9340dfb

Please sign in to comment.