Skip to content

Commit 2b7e2c3

Browse files
authored
chore(transport): Remove redundant type reconstruct (#2176)
1 parent 766fa85 commit 2b7e2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tonic/src/transport/service/grpc_timeout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ where
8080
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
8181
let this = self.project();
8282

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

8787
if let Some(sleep) = this.sleep.as_pin_mut() {

0 commit comments

Comments
 (0)