aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/module/nameres.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/module/nameres.rs')
-rw-r--r--crates/ra_hir/src/module/nameres.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs
index 9afeade9e..5540b827f 100644
--- a/crates/ra_hir/src/module/nameres.rs
+++ b/crates/ra_hir/src/module/nameres.rs
@@ -98,7 +98,7 @@ impl NamedImport {
98 pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange { 98 pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange {
99 let source_item_id = SourceItemId { 99 let source_item_id = SourceItemId {
100 file_id, 100 file_id,
101 item_id: self.file_item_id, 101 item_id: Some(self.file_item_id),
102 }; 102 };
103 let syntax = db.file_item(source_item_id); 103 let syntax = db.file_item(source_item_id);
104 let offset = syntax.borrowed().range().start(); 104 let offset = syntax.borrowed().range().start();
@@ -281,7 +281,7 @@ where
281 module_id, 281 module_id,
282 source_item_id: SourceItemId { 282 source_item_id: SourceItemId {
283 file_id, 283 file_id,
284 item_id: item.id, 284 item_id: Some(item.id),
285 }, 285 },
286 }; 286 };
287 let def_id = def_loc.id(self.db); 287 let def_id = def_loc.id(self.db);