Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/project-model/src/manifest_path.rs')
-rw-r--r--crates/project-model/src/manifest_path.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/project-model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs
index 2331c0c36c..a8be5dff7b 100644
--- a/crates/project-model/src/manifest_path.rs
+++ b/crates/project-model/src/manifest_path.rs
@@ -64,6 +64,18 @@ impl AsRef<AbsPath> for ManifestPath {
}
}
+impl AsRef<std::path::Path> for ManifestPath {
+ fn as_ref(&self) -> &std::path::Path {
+ self.file.as_ref()
+ }
+}
+
+impl AsRef<std::ffi::OsStr> for ManifestPath {
+ fn as_ref(&self) -> &std::ffi::OsStr {
+ self.file.as_ref()
+ }
+}
+
impl Borrow<AbsPath> for ManifestPath {
fn borrow(&self) -> &AbsPath {
self.file.borrow()