mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Cut problematic dependency
This commit is contained in:
parent
fdf86aee18
commit
84cd28fddc
6 changed files with 31 additions and 15 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue