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 805357662..4fb5844f4 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -167,7 +167,7 @@ impl ModuleSource {
167 ) -> ModuleSource { 167 ) -> ModuleSource {
168 match (file_id, decl_id) { 168 match (file_id, decl_id) {
169 (Some(file_id), _) => { 169 (Some(file_id), _) => {
170 let source_file = db.parse(file_id).tree; 170 let source_file = db.parse(file_id).tree().to_owned();
171 ModuleSource::SourceFile(source_file) 171 ModuleSource::SourceFile(source_file)
172 } 172 }
173 (None, Some(item_id)) => { 173 (None, Some(item_id)) => {