From 6603051e13fa4a2037ae82b3d7b3ec27e95d478f Mon Sep 17 00:00:00 2001 From: David Calavera Date: Sun, 11 Oct 2020 09:27:43 -0700 Subject: [PATCH] Fix check warnings. Signed-off-by: David Calavera --- src/content/write.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {