Skip to content

Commit

Permalink
Merge pull request #940 from gdesmott/override
Browse files Browse the repository at this point in the history
cargo_toml: use lib_version_overrides when defining feature versions
  • Loading branch information
EPashkin committed Jun 25, 2020
2 parents 87400c5 + 9a9bf9c commit 30b3c82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codegen/sys/cargo_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ fn fill_in(root: &mut Table, env: &Env) {

let versions = upsert_table(meta, "feature-versions");
collect_versions(env)
.keys()
.filter(|&&v| v > env.config.min_cfg_version)
.for_each(|v| {
set_string(versions, &v.to_feature(), v.to_string());
.iter()
.filter(|(&v, _)| v > env.config.min_cfg_version)
.for_each(|(v, lib_version)| {
set_string(versions, &v.to_feature(), lib_version.to_string());
});
}

Expand Down

0 comments on commit 30b3c82

Please sign in to comment.