chore: update to bytes 1.0 git branch (#3301)

Updates the code base to track the `bytes` git branch. This is in
preparation for the 1.0 release.

Closes #3058
This commit is contained in:
Carl Lerche
2020-12-19 15:57:16 -08:00
committed by GitHub
parent 5e5f513542
commit 2893359988
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ where
loop {
if self.as_mut().has_chunk() {
// This unwrap is very sad, but it can't be avoided.
let buf = self.project().chunk.as_ref().unwrap().bytes();
let buf = self.project().chunk.as_ref().unwrap().chunk();
return Poll::Ready(Ok(buf));
} else {
match self.as_mut().project().inner.poll_next(cx) {