Update for latest changes to futures.

Fixes #209.
This commit is contained in:
Tim Kuehn
2019-01-17 10:36:01 -08:00
parent 959bb691cd
commit 0f36985440
25 changed files with 153 additions and 159 deletions

View File

@@ -52,7 +52,7 @@ where
fn poll(mut self: Pin<&mut Self>, waker: &LocalWaker) -> Poll<Self::Output> {
// First, try polling the future
match self.future().try_poll(waker) {
match self.as_mut().future().try_poll(waker) {
Poll::Ready(Ok(v)) => return Poll::Ready(Ok(v)),
Poll::Pending => {}
Poll::Ready(Err(e)) => return Poll::Ready(Err(timeout::Error::inner(e))),