Fix failing tests

This commit is contained in:
Stjepan Glavina 2019-10-15 01:33:36 +02:00
parent 504f8cb137
commit 5c1e0522b7

View file

@ -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 {
type Owned = PathBuf;