mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Allow rust files to be used linkedProjects
This commit is contained in:
parent
55d9a533b3
commit
a2ed6837bc
21 changed files with 203 additions and 180 deletions
|
@ -1,5 +1,5 @@
|
|||
//! See [`ManifestPath`].
|
||||
use std::{fmt, ops, path::Path};
|
||||
use std::{borrow::Borrow, fmt, ops};
|
||||
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
|
||||
|
@ -54,8 +54,14 @@ impl ops::Deref for ManifestPath {
|
|||
}
|
||||
}
|
||||
|
||||
impl AsRef<Path> for ManifestPath {
|
||||
fn as_ref(&self) -> &Path {
|
||||
impl AsRef<AbsPath> for ManifestPath {
|
||||
fn as_ref(&self) -> &AbsPath {
|
||||
self.file.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl Borrow<AbsPath> for ManifestPath {
|
||||
fn borrow(&self) -> &AbsPath {
|
||||
self.file.borrow()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue