From 2b7e2c3eaaea6da4c628dbb5112aa262ead7b6e8 Mon Sep 17 00:00:00 2001 From: tottoto Date: Tue, 11 Feb 2025 10:32:27 +0900 Subject: [PATCH] chore(transport): Remove redundant type reconstruct (#2176) --- tonic/src/transport/service/grpc_timeout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tonic/src/transport/service/grpc_timeout.rs b/tonic/src/transport/service/grpc_timeout.rs index 5285d205f..0465b0269 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() {