Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Feb 28, 2025
1 parent 2e26222 commit 4c6f450
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monoio/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub async fn write<P: AsRef<Path>, C: IoBuf>(path: P, contents: C) -> (io::Resul
/// ```
#[cfg(feature = "unlinkat")]
pub async fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
Op::unlink(path)?.await.meta.result?;
crate::driver::op::Op::unlink(path)?.await.meta.result?;
Ok(())
}

Expand Down Expand Up @@ -250,7 +250,7 @@ pub async fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
/// ```
#[cfg(feature = "unlinkat")]
pub async fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
Op::rmdir(path)?.await.meta.result?;
crate::driver::op::Op::rmdir(path)?.await.meta.result?;
Ok(())
}

Expand Down Expand Up @@ -281,6 +281,6 @@ pub async fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
/// ```
#[cfg(feature = "renameat")]
pub async fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()> {
Op::rename(from.as_ref(), to.as_ref())?.await.meta.result?;
crate::driver::op::Op::rename(from.as_ref(), to.as_ref())?.await.meta.result?;
Ok(())
}

0 comments on commit 4c6f450

Please sign in to comment.