summaryrefslogtreecommitdiffstats
path: root/tokio/src/fs/metadata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/fs/metadata.rs')
-rw-r--r--tokio/src/fs/metadata.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tokio/src/fs/metadata.rs b/tokio/src/fs/metadata.rs
index d78294a0..3a830db3 100644
--- a/tokio/src/fs/metadata.rs
+++ b/tokio/src/fs/metadata.rs
@@ -5,10 +5,7 @@ use std::io;
use std::path::Path;
/// Queries the file system metadata for a path.
-pub async fn metadata<P>(path: P) -> io::Result<Metadata>
-where
- P: AsRef<Path>,
-{
+pub async fn metadata(path: impl AsRef<Path>) -> io::Result<Metadata> {
let path = path.as_ref().to_owned();
asyncify(|| std::fs::metadata(path)).await
}