aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_db')
-rw-r--r--crates/ra_db/src/fixture.rs4
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));