Update with Poll/Async changes

This commit is contained in:
Alex Crichton
2016-09-02 12:17:38 -07:00
parent 3282b3ec0d
commit 3794cf7f1d
17 changed files with 103 additions and 124 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ impl<A> Future for ReadToEnd<A>
}
match mem::replace(&mut self.state, State::Empty) {
State::Reading { a, buf } => Poll::Ok((a, buf)),
State::Reading { a, buf } => Ok((a, buf).into()),
State::Empty => unreachable!(),
}
}