forked from mirror/async-std
Fix failing tests
This commit is contained in:
parent
504f8cb137
commit
5c1e0522b7
1 changed files with 6 additions and 0 deletions
|
@ -843,6 +843,12 @@ impl AsRef<Path> for String {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl AsRef<Path> for std::path::PathBuf {
|
||||||
|
fn as_ref(&self) -> &Path {
|
||||||
|
Path::new(self.into())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl std::borrow::ToOwned for Path {
|
impl std::borrow::ToOwned for Path {
|
||||||
type Owned = PathBuf;
|
type Owned = PathBuf;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue