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