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.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/project-model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs
index d6754116e6..3f60e4dd92 100644
--- a/crates/project-model/src/manifest_path.rs
+++ b/crates/project-model/src/manifest_path.rs
@@ -35,9 +35,8 @@ impl ManifestPath {
self.file.parent().unwrap()
}
- /// Equivalent of [`Path::canonicalize`] for `ManifestPath`.
- pub fn canonicalize(&self) -> Result<ManifestPath, std::io::Error> {
- Ok((&**self).canonicalize()?.try_into().unwrap())
+ pub fn canonicalize(&self) -> ! {
+ (&**self).canonicalize()
}
}