mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Fix panic when json project has relative buildfile paths
This commit is contained in:
parent
0fb804acb3
commit
eded3a8e29
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ impl ProjectWorkspace {
|
|||
ProjectWorkspaceKind::Json(project) => project
|
||||
.crates()
|
||||
.filter_map(|(_, krate)| krate.build.as_ref().map(|build| build.build_file.clone()))
|
||||
.map(AbsPathBuf::assert)
|
||||
.map(|build_file| self.workspace_root().join(build_file))
|
||||
.collect(),
|
||||
_ => vec![],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue