diff options
author | Aleksey Kladov <[email protected]> | 2020-06-23 17:56:26 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-23 17:56:26 +0100 |
commit | 84cd28fddc89bfa75760e81f4fbc5aa21ce2742c (patch) | |
tree | e3a4ea586b680132224e542e53e312c24ce958b1 /crates/ra_ide | |
parent | fdf86aee18e396d393d50df7df27b02111838507 (diff) |
Cut problematic dependency
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/mock_analysis.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_ide/src/mock_analysis.rs b/crates/ra_ide/src/mock_analysis.rs index f15990158..981bdf924 100644 --- a/crates/ra_ide/src/mock_analysis.rs +++ b/crates/ra_ide/src/mock_analysis.rs | |||
@@ -38,7 +38,12 @@ impl MockFileData { | |||
38 | 38 | ||
39 | fn cfg_options(&self) -> CfgOptions { | 39 | fn cfg_options(&self) -> CfgOptions { |
40 | match self { | 40 | match self { |
41 | MockFileData::Fixture(f) => f.cfg.clone(), | 41 | MockFileData::Fixture(f) => { |
42 | let mut cfg = CfgOptions::default(); | ||
43 | f.cfg_atoms.iter().for_each(|it| cfg.insert_atom(it.into())); | ||
44 | f.cfg_key_values.iter().for_each(|(k, v)| cfg.insert_key_value(k.into(), v.into())); | ||
45 | cfg | ||
46 | } | ||
42 | _ => CfgOptions::default(), | 47 | _ => CfgOptions::default(), |
43 | } | 48 | } |
44 | } | 49 | } |