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_db | |
parent | fdf86aee18e396d393d50df7df27b02111838507 (diff) |
Cut problematic dependency
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/fixture.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs index 6c13e62bb..ea52ec563 100644 --- a/crates/ra_db/src/fixture.rs +++ b/crates/ra_db/src/fixture.rs | |||
@@ -203,11 +203,15 @@ struct FileMeta { | |||
203 | 203 | ||
204 | impl From<&Fixture> for ParsedMeta { | 204 | impl From<&Fixture> for ParsedMeta { |
205 | fn from(f: &Fixture) -> Self { | 205 | fn from(f: &Fixture) -> Self { |
206 | let mut cfg = CfgOptions::default(); | ||
207 | f.cfg_atoms.iter().for_each(|it| cfg.insert_atom(it.into())); | ||
208 | f.cfg_key_values.iter().for_each(|(k, v)| cfg.insert_key_value(k.into(), v.into())); | ||
209 | |||
206 | Self::File(FileMeta { | 210 | Self::File(FileMeta { |
207 | path: f.path.to_owned(), | 211 | path: f.path.to_owned(), |
208 | krate: f.crate_name.to_owned(), | 212 | krate: f.crate_name.to_owned(), |
209 | deps: f.deps.to_owned(), | 213 | deps: f.deps.to_owned(), |
210 | cfg: f.cfg.to_owned(), | 214 | cfg, |
211 | edition: f | 215 | edition: f |
212 | .edition | 216 | .edition |
213 | .as_ref() | 217 | .as_ref() |