Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Commit ea01d9c

Browse files
kbleekeyoshuawuyts
authored andcommitted
poll self.delay in impl Future for time::Timeout (#54)
1 parent 68577e3 commit ea01d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<F: Future + Unpin> Future for Timeout<F> {
2828
return Poll::Ready(Ok(t));
2929
}
3030

31-
self.as_mut()
31+
Pin::new(&mut self.delay)
3232
.poll(cx)
3333
.map(|_| Err(io::Error::new(io::ErrorKind::TimedOut, "future timed out")))
3434
}

0 commit comments

Comments
 (0)