diff --git a/src/content/write.rs b/src/content/write.rs index a6079d8..ad35aa4 100644 --- a/src/content/write.rs +++ b/src/content/write.rs @@ -216,7 +216,7 @@ impl AsyncWriter { impl AsyncWrite for AsyncWriter { fn poll_write( - mut self: Pin<&mut Self>, + self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll> { @@ -273,7 +273,7 @@ impl AsyncWrite for AsyncWriter { } } - fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { let state = &mut *self.0.lock().unwrap(); loop { @@ -313,7 +313,7 @@ impl AsyncWrite for AsyncWriter { } } - fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { + fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { let state = &mut *self.0.lock().unwrap(); loop {