From c8bcfe6a05d82e151d459bcd2bd8a7b2742f7a66 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 May 2019 18:07:39 +0300 Subject: fix syntax errors in tests --- 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 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 { ) -> ModuleSource { match (file_id, decl_id) { (Some(file_id), _) => { - let source_file = db.parse(file_id); + let source_file = db.parse(file_id).tree; ModuleSource::SourceFile(source_file) } (None, Some(item_id)) => { -- cgit v1.2.3