Skip to content

Commit

Permalink
Fix panic when json project has relative buildfile paths
Browse files Browse the repository at this point in the history
darichey committed Oct 12, 2024
1 parent 0fb804a commit eded3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project-model/src/workspace.rs
Original file line number Diff line number Diff line change
@@ -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![],
}

0 comments on commit eded3a8

Please sign in to comment.