ci: fix clippy warnings (#5891)

Signed-off-by: Jiahao XU <[email protected]>
This commit is contained in:
Jiahao XU
2023-07-28 12:05:32 +02:00
committed by GitHub
parent c445e467ce
commit 5128601898
12 changed files with 18 additions and 20 deletions
+2 -2
View File
@@ -234,7 +234,7 @@ impl<T: tokio::io::AsyncSeek> futures_io::AsyncSeek for Compat<T> {
}
let res = ready!(self.as_mut().project().inner.poll_complete(cx));
*self.as_mut().project().seek_pos = None;
Poll::Ready(res.map(|p| p as u64))
Poll::Ready(res)
}
}
@@ -257,7 +257,7 @@ impl<T: futures_io::AsyncSeek> tokio::io::AsyncSeek for Compat<T> {
};
let res = ready!(self.as_mut().project().inner.poll_seek(cx, pos));
*self.as_mut().project().seek_pos = None;
Poll::Ready(res.map(|p| p as u64))
Poll::Ready(res)
}
}