Skip to content

Commit

Permalink
Fixed a needless borrow.
Browse files Browse the repository at this point in the history
  • Loading branch information
hbina committed Apr 18, 2020
1 parent f044cf9 commit fb48de8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/cargo/ops/cargo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,12 +902,7 @@ fn generate_targets<'a>(
let unavailable_features = match target.required_features() {
Some(rf) => {
let features = features_map.entry(pkg).or_insert_with(|| {
resolve_all_features(
resolve,
resolved_features,
&bcx.packages,
pkg.package_id(),
)
resolve_all_features(resolve, resolved_features, bcx.packages, pkg.package_id())
});
rf.iter().filter(|f| !features.contains(*f)).collect()
}
Expand Down

0 comments on commit fb48de8

Please sign in to comment.