We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb27592 commit d3c6e07Copy full SHA for d3c6e07
crates/metadata/lib.rs
@@ -205,15 +205,15 @@ impl Metadata {
205
})
206
.unwrap_or(HOST_TARGET);
207
208
- let user_targets = self
+ let crate_targets = self
209
.targets
210
.as_ref()
211
.map(|targets| targets.iter().map(String::as_str).collect());
212
// Let people opt-in to only having specific targets
213
let mut targets: HashSet<_> = if only_build_default_target {
214
- user_targets.unwrap_or_default()
+ crate_targets.unwrap_or_default()
215
} else {
216
- user_targets.unwrap_or_else(|| DEFAULT_TARGETS.iter().copied().collect())
+ crate_targets.unwrap_or_else(|| DEFAULT_TARGETS.iter().copied().collect())
217
};
218
219
targets.remove(&default_target);
0 commit comments