diff --git a/src/lib.rs b/src/lib.rs index 62f569f..24010bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,8 +118,8 @@ where { type Item = Vec; - fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - let mut me = self.as_mut().project(); + fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + let mut me = self.project(); loop { match ready!(me.stream.as_mut().poll_next(cx)) { Some(item) => {