]> git.lizzy.rs Git - rust.git/blobdiff - crates/paths/src/lib.rs
Auto merge of #12808 - Veykril:check-workspace, r=Veykril
[rust.git] / crates / paths / src / lib.rs
index 025093f4a94ab6ea81d4297bb64d6bdb0e26a15f..6ae23ac841adaa6a7f97d8841c57aec96f2d2439 100644 (file)
@@ -106,6 +106,14 @@ fn as_ref(&self) -> &Path {
     }
 }
 
+impl ToOwned for AbsPath {
+    type Owned = AbsPathBuf;
+
+    fn to_owned(&self) -> Self::Owned {
+        AbsPathBuf(self.0.to_owned())
+    }
+}
+
 impl<'a> TryFrom<&'a Path> for &'a AbsPath {
     type Error = &'a Path;
     fn try_from(path: &'a Path) -> Result<&'a AbsPath, &'a Path> {