diff options
author | vsrs <[email protected]> | 2020-05-16 10:25:26 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-05-16 10:25:26 +0100 |
commit | 256fb7556e9f4a329e673851427942c6403bacb6 (patch) | |
tree | 95ca07e9ed91b8f62e434f959450f1bb7eb5a512 /crates/ra_db | |
parent | d901e0e709258f71183455865cb6f9e07b3dd5d3 (diff) |
Remove temporary FixtureEntry parsed_meta field.
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/fixture.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs index 6e2c7ff72..8b62fe9aa 100644 --- a/crates/ra_db/src/fixture.rs +++ b/crates/ra_db/src/fixture.rs | |||
@@ -99,7 +99,7 @@ fn with_single_file(db: &mut dyn SourceDatabaseExt, ra_fixture: &str) -> FileId | |||
99 | let fixture = parse_single_fixture(ra_fixture); | 99 | let fixture = parse_single_fixture(ra_fixture); |
100 | 100 | ||
101 | let crate_graph = if let Some(entry) = fixture { | 101 | let crate_graph = if let Some(entry) = fixture { |
102 | let meta = match ParsedMeta::from(&entry.parsed_meta) { | 102 | let meta = match ParsedMeta::from(&entry.meta) { |
103 | ParsedMeta::File(it) => it, | 103 | ParsedMeta::File(it) => it, |
104 | _ => panic!("with_single_file only support file meta"), | 104 | _ => panic!("with_single_file only support file meta"), |
105 | }; | 105 | }; |
@@ -156,7 +156,7 @@ fn with_files(db: &mut dyn SourceDatabaseExt, fixture: &str) -> Option<FilePosit | |||
156 | let mut file_position = None; | 156 | let mut file_position = None; |
157 | 157 | ||
158 | for entry in fixture.iter() { | 158 | for entry in fixture.iter() { |
159 | let meta = match ParsedMeta::from(&entry.parsed_meta) { | 159 | let meta = match ParsedMeta::from(&entry.meta) { |
160 | ParsedMeta::Root { path } => { | 160 | ParsedMeta::Root { path } => { |
161 | let source_root = std::mem::replace(&mut source_root, SourceRoot::new_local()); | 161 | let source_root = std::mem::replace(&mut source_root, SourceRoot::new_local()); |
162 | db.set_source_root(source_root_id, Arc::new(source_root)); | 162 | db.set_source_root(source_root_id, Arc::new(source_root)); |