Skip to content

Commit 5c1e052

Browse files
author
Stjepan Glavina
committed
Fix failing tests
1 parent 504f8cb commit 5c1e052

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/path/path.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,12 @@ impl AsRef<Path> for String {
843843
}
844844
}
845845

846+
impl AsRef<Path> for std::path::PathBuf {
847+
fn as_ref(&self) -> &Path {
848+
Path::new(self.into())
849+
}
850+
}
851+
846852
impl std::borrow::ToOwned for Path {
847853
type Owned = PathBuf;
848854

0 commit comments

Comments
 (0)