We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59fcd00 + 62c9d96 commit 943d2a8Copy full SHA for 943d2a8
crates/project-model/src/cargo_workspace.rs
@@ -293,13 +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
- .collect();
301
- meta.other_options(other_options);
+ other_options.append(
+ &mut targets
+ .into_iter()
+ .flat_map(|target| ["--filter-platform".to_string(), target])
302
+ .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