Assume cargo_metadata uses String for cfgs soon

This commit is contained in:
robojumper 2020-05-05 14:53:52 +02:00
parent 059fc86963
commit f2dd233ddc
2 changed files with 9 additions and 10 deletions

View file

@ -399,13 +399,7 @@ impl ProjectWorkspace {
let cfg_options = {
let mut opts = default_cfg_options.clone();
opts.insert_features(cargo[pkg].features.iter().map(Into::into));
opts.insert_cfgs(
cargo[pkg]
.cfgs
.iter()
.filter_map(|c| c.to_str())
.map(Into::into),
);
opts.insert_cfgs(cargo[pkg].cfgs.iter().map(Into::into));
opts
};
let mut env = Env::default();