diff options
author | Linus Färnstrand <faern@faern.net> | 2019-10-26 17:40:38 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-10-26 08:40:38 -0700 |
commit | 474befd23c368a34a5f45aab0f3945212109a803 (patch) | |
tree | 0284891d5e80e191ab995f9cb517942b84fa2b2d /tokio/src/fs/hard_link.rs | |
parent | 987ba7373cf95c570bf23768c6021f7a7508286e (diff) |
chore: use argument position impl trait (#1690)
Diffstat (limited to 'tokio/src/fs/hard_link.rs')
-rw-r--r-- | tokio/src/fs/hard_link.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/fs/hard_link.rs b/tokio/src/fs/hard_link.rs index 564807a6..e3a32afc 100644 --- a/tokio/src/fs/hard_link.rs +++ b/tokio/src/fs/hard_link.rs @@ -11,7 +11,7 @@ use std::path::Path; /// This is an async version of [`std::fs::hard_link`][std] /// /// [std]: https://doc.rust-lang.org/std/fs/fn.hard_link.html -pub async fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()> { +pub async fn hard_link(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()> { let src = src.as_ref().to_owned(); let dst = dst.as_ref().to_owned(); |