Skip to content

Commit

Permalink
chore(transport): Remove redundant type reconstruct (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Feb 11, 2025
1 parent 766fa85 commit 2b7e2c3
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 2b7e2c3

Please sign in to comment.