test walk_dir done

This commit is contained in:
weisd
2024-12-16 20:02:49 +08:00
parent 99c229524d
commit 8ab8201403
4 changed files with 35 additions and 24 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ impl VecAsyncWriter {
// Implementing AsyncWrite trait for VecAsyncWriter
impl AsyncWrite for VecAsyncWriter {
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<io::Result<usize>> {
fn poll_write(self: Pin<&mut Self>, _cx: &mut Context<'_>, buf: &[u8]) -> Poll<io::Result<usize>> {
let len = buf.len();
// Assume synchronous writing for simplicity
@@ -178,7 +178,7 @@ impl AsyncWrite for VecAsyncWriter {
Poll::Ready(Ok(()))
}
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
// Similar to flush, shutdown has no effect here
Poll::Ready(Ok(()))
}