We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f502169 commit 62c9d96Copy full SHA for 62c9d96
crates/project-model/src/cargo_workspace.rs
@@ -293,14 +293,16 @@ impl CargoWorkspace {
293
}
294
meta.current_dir(current_dir.as_os_str());
295
296
+ let mut other_options = config.extra_args.clone();
297
if !targets.is_empty() {
- let other_options: Vec<_> = targets
298
- .into_iter()
299
- .flat_map(|target| ["--filter-platform".to_string(), target])
300
- .chain(config.extra_args.clone())
301
- .collect();
302
- meta.other_options(other_options);
+ other_options.append(
+ &mut targets
+ .into_iter()
+ .flat_map(|target| ["--filter-platform".to_string(), target])
+ .collect(),
303
+ );
304
305
+ meta.other_options(other_options);
306
307
// FIXME: Fetching metadata is a slow process, as it might require
308
// calling crates.io. We should be reporting progress here, but it's
0 commit comments