Cut problematic dependency

This commit is contained in:
Aleksey Kladov 2020-06-23 18:56:26 +02:00
parent fdf86aee18
commit 84cd28fddc
6 changed files with 31 additions and 15 deletions

View file

@ -38,7 +38,12 @@ impl MockFileData {
fn cfg_options(&self) -> CfgOptions {
match self {
MockFileData::Fixture(f) => f.cfg.clone(),
MockFileData::Fixture(f) => {
let mut cfg = CfgOptions::default();
f.cfg_atoms.iter().for_each(|it| cfg.insert_atom(it.into()));
f.cfg_key_values.iter().for_each(|(k, v)| cfg.insert_key_value(k.into(), v.into()));
cfg
}
_ => CfgOptions::default(),
}
}