diff --git a/eden/scm/lib/types/src/path.rs b/eden/scm/lib/types/src/path.rs index ca7d293310..612a8fd59d 100644 --- a/eden/scm/lib/types/src/path.rs +++ b/eden/scm/lib/types/src/path.rs @@ -228,6 +228,12 @@ impl AsRef for RepoPathBuf { } } +impl AsRef for RepoPathBuf { + fn as_ref(&self) -> &str { + &self.0 + } +} + impl AsRef<[u8]> for RepoPathBuf { fn as_ref(&self) -> &[u8] { self.as_byte_slice() @@ -359,6 +365,12 @@ impl AsRef for RepoPath { } } +impl AsRef for RepoPath { + fn as_ref(&self) -> &str { + &self.0 + } +} + impl AsRef<[u8]> for RepoPath { fn as_ref(&self) -> &[u8] { self.as_byte_slice()