mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Make VFS join methods fallible
This commit is contained in:
parent
38cd1b70e8
commit
72fe70f2f8
4 changed files with 27 additions and 9 deletions
|
@ -213,7 +213,7 @@ impl GlobalStateSnapshot {
|
|||
pub(crate) fn anchored_path(&self, file_id: FileId, path: &str) -> Url {
|
||||
let mut base = self.vfs.read().0.file_path(file_id);
|
||||
base.pop();
|
||||
let path = base.join(path);
|
||||
let path = base.join(path).unwrap();
|
||||
let path = path.as_path().unwrap();
|
||||
url_from_abs_path(&path)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue