mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Don't fetch build script output twice
This commit is contained in:
parent
ce4670f299
commit
095df7bc39
1 changed files with 0 additions and 8 deletions
|
@ -232,14 +232,6 @@ impl GlobalState {
|
|||
let mut res = Vec::new();
|
||||
for ws in workspaces.iter() {
|
||||
res.push(ws.run_build_scripts(&config, &progress));
|
||||
let ws = match ws {
|
||||
ProjectWorkspace::Cargo { cargo, .. } => cargo,
|
||||
ProjectWorkspace::DetachedFiles { .. } | ProjectWorkspace::Json { .. } => {
|
||||
res.push(Ok(WorkspaceBuildScripts::default()));
|
||||
continue;
|
||||
}
|
||||
};
|
||||
res.push(WorkspaceBuildScripts::run(&config, ws, &progress))
|
||||
}
|
||||
sender.send(Task::FetchBuildData(BuildDataProgress::End((workspaces, res)))).unwrap();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue