diff options
Diffstat (limited to 'tokio/src/fs/remove_file.rs')
-rw-r--r-- | tokio/src/fs/remove_file.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tokio/src/fs/remove_file.rs b/tokio/src/fs/remove_file.rs index 8ab162ca..d22a5bfc 100644 --- a/tokio/src/fs/remove_file.rs +++ b/tokio/src/fs/remove_file.rs @@ -5,13 +5,13 @@ use std::path::Path; /// Removes a file from the filesystem. /// -/// Note that there is no -/// guarantee that the file is immediately deleted (e.g. depending on -/// platform, other open file descriptors may prevent immediate removal). +/// Note that there is no guarantee that the file is immediately deleted (e.g. +/// depending on platform, other open file descriptors may prevent immediate +/// removal). /// /// This is an async version of [`std::fs::remove_file`][std] /// -/// [std]: https://doc.rust-lang.org/std/fs/fn.remove_file.html +/// [std]: std::fs::remove_file pub async fn remove_file(path: impl AsRef<Path>) -> io::Result<()> { let path = path.as_ref().to_owned(); asyncify(move || std::fs::remove_file(path)).await |