⬆️ rust-analyzer

This commit is contained in:
Laurențiu Nicola 2022-08-09 07:23:57 +03:00
parent 9d2cb42a41
commit 22c8c9c401
66 changed files with 1636 additions and 281 deletions

View file

@ -106,6 +106,14 @@ impl AsRef<Path> for AbsPath {
}
}
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> {