From 57cc0d79b590bed4851ebf7f6e39fec2ff45e9f7 Mon Sep 17 00:00:00 2001 From: pragmaxim Date: Wed, 12 Jun 2024 10:32:17 +0200 Subject: [PATCH] cleanup --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {