Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakhh8 committed Apr 24, 2023
1 parent f502169 commit 62c9d96
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/project-model/src/cargo_workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,16 @@ impl CargoWorkspace {
}
meta.current_dir(current_dir.as_os_str());

let mut other_options = config.extra_args.clone();
if !targets.is_empty() {
let other_options: Vec<_> = targets
.into_iter()
.flat_map(|target| ["--filter-platform".to_string(), target])
.chain(config.extra_args.clone())
.collect();
meta.other_options(other_options);
other_options.append(
&mut targets
.into_iter()
.flat_map(|target| ["--filter-platform".to_string(), target])
.collect(),
);
}
meta.other_options(other_options);

// FIXME: Fetching metadata is a slow process, as it might require
// calling crates.io. We should be reporting progress here, but it's
Expand Down

0 comments on commit 62c9d96

Please sign in to comment.