summaryrefslogtreecommitdiffstats
path: root/tokio/src/fs/create_dir_all.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/fs/create_dir_all.rs')
-rw-r--r--tokio/src/fs/create_dir_all.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/fs/create_dir_all.rs b/tokio/src/fs/create_dir_all.rs
index 2a7374a3..8c0c8df2 100644
--- a/tokio/src/fs/create_dir_all.rs
+++ b/tokio/src/fs/create_dir_all.rs
@@ -9,7 +9,7 @@ use std::path::Path;
/// This is an async version of [`std::fs::create_dir_all`][std]
///
/// [std]: https://doc.rust-lang.org/std/fs/fn.create_dir_all.html
-pub async fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
+pub async fn create_dir_all(path: impl AsRef<Path>) -> io::Result<()> {
let path = path.as_ref().to_owned();
asyncify(move || std::fs::create_dir_all(path)).await
}