Fix check warnings.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2020-10-11 09:27:43 -07:00
parent db55dc1641
commit 6603051e13
No known key found for this signature in database
GPG Key ID: DE3D437CCBECE2C4
1 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ impl AsyncWriter {
impl AsyncWrite for AsyncWriter { impl AsyncWrite for AsyncWriter {
fn poll_write( fn poll_write(
mut self: Pin<&mut Self>, self: Pin<&mut Self>,
cx: &mut Context<'_>, cx: &mut Context<'_>,
buf: &[u8], buf: &[u8],
) -> Poll<std::io::Result<usize>> { ) -> Poll<std::io::Result<usize>> {
@ -273,7 +273,7 @@ impl AsyncWrite for AsyncWriter {
} }
} }
fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<std::io::Result<()>> { fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<std::io::Result<()>> {
let state = &mut *self.0.lock().unwrap(); let state = &mut *self.0.lock().unwrap();
loop { loop {
@ -313,7 +313,7 @@ impl AsyncWrite for AsyncWriter {
} }
} }
fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<std::io::Result<()>> { fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<std::io::Result<()>> {
let state = &mut *self.0.lock().unwrap(); let state = &mut *self.0.lock().unwrap();
loop { loop {