diff --git a/tonic/src/transport/service/grpc_timeout.rs b/tonic/src/transport/service/grpc_timeout.rs index 019a37a2f..63cdf010a 100644 --- a/tonic/src/transport/service/grpc_timeout.rs +++ b/tonic/src/transport/service/grpc_timeout.rs @@ -80,8 +80,8 @@ where fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { 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() {