diff options
Diffstat (limited to 'crates/project_model')
-rw-r--r-- | crates/project_model/src/workspace.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs index d754c8b55..aa7a8ee52 100644 --- a/crates/project_model/src/workspace.rs +++ b/crates/project_model/src/workspace.rs | |||
@@ -274,19 +274,12 @@ impl ProjectWorkspace { | |||
274 | crate_graph | 274 | crate_graph |
275 | } | 275 | } |
276 | 276 | ||
277 | pub fn collect_build_data_configs( | 277 | pub fn collect_build_data_configs(&self, collector: &mut BuildDataCollector) { |
278 | &self, | ||
279 | collector: &mut BuildDataCollector, | ||
280 | for_private: bool, | ||
281 | ) { | ||
282 | match self { | 278 | match self { |
283 | ProjectWorkspace::Cargo { cargo, rustc, .. } => { | 279 | ProjectWorkspace::Cargo { cargo, rustc, .. } => { |
284 | collector.add_config(&cargo.workspace_root(), cargo.build_data_config().clone()); | 280 | collector.add_config(&cargo.workspace_root(), cargo.build_data_config().clone()); |
285 | if for_private { | 281 | if let Some(rustc) = rustc { |
286 | if let Some(rustc) = rustc { | 282 | collector.add_config(rustc.workspace_root(), rustc.build_data_config().clone()); |
287 | collector | ||
288 | .add_config(rustc.workspace_root(), rustc.build_data_config().clone()); | ||
289 | } | ||
290 | } | 283 | } |
291 | } | 284 | } |
292 | _ => {} | 285 | _ => {} |