aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r--crates/ra_hir/src/code_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index a9ffc8782..69496b624 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -116,7 +116,7 @@ impl ModuleSource {
116 ) -> ModuleSource { 116 ) -> ModuleSource {
117 match (file_id, decl_id) { 117 match (file_id, decl_id) {
118 (Some(file_id), _) => { 118 (Some(file_id), _) => {
119 let source_file = db.parse(file_id); 119 let source_file = db.parse(file_id).tree;
120 ModuleSource::SourceFile(source_file) 120 ModuleSource::SourceFile(source_file)
121 } 121 }
122 (None, Some(item_id)) => { 122 (None, Some(item_id)) => {