diff --git a/src/path/path.rs b/src/path/path.rs index 4bc0757..63c8659 100644 --- a/src/path/path.rs +++ b/src/path/path.rs @@ -843,6 +843,12 @@ impl AsRef for String { } } +impl AsRef for std::path::PathBuf { + fn as_ref(&self) -> &Path { + Path::new(self.into()) + } +} + impl std::borrow::ToOwned for Path { type Owned = PathBuf;