diff options
Diffstat (limited to 'tvix/castore')
-rw-r--r-- | tvix/castore/src/path.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/castore/src/path.rs b/tvix/castore/src/path.rs index 498f9a91b06a..68e4b75ec812 100644 --- a/tvix/castore/src/path.rs +++ b/tvix/castore/src/path.rs @@ -117,6 +117,12 @@ impl Display for Path { } } +impl AsRef<Path> for Path { + fn as_ref(&self) -> &Path { + self + } +} + /// Represents a owned PathBuf in the castore model. /// These are always relative, and platform-independent, which distinguishes /// them from the ones provided in the standard library. |