From deab4caa7b1ba81c1b7e6561bc270bbde6467f13 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Jul 2019 19:41:13 +0300 Subject: make Parse fields private this is in preparation for the new rowan API --- crates/ra_hir/src/code_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/code_model.rs') 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 { ) -> ModuleSource { match (file_id, decl_id) { (Some(file_id), _) => { - let source_file = db.parse(file_id).tree; + let source_file = db.parse(file_id).tree().to_owned(); ModuleSource::SourceFile(source_file) } (None, Some(item_id)) => { -- cgit v1.2.3