diff options
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index e920256e5..1a33127fa 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -210,11 +210,11 @@ impl Module { | |||
210 | pub fn declaration_source( | 210 | pub fn declaration_source( |
211 | self, | 211 | self, |
212 | db: &(impl DefDatabase + AstDatabase), | 212 | db: &(impl DefDatabase + AstDatabase), |
213 | ) -> Option<(HirFileId, TreeArc<ast::Module>)> { | 213 | ) -> Option<Source<TreeArc<ast::Module>>> { |
214 | let def_map = db.crate_def_map(self.krate); | 214 | let def_map = db.crate_def_map(self.krate); |
215 | let decl = def_map[self.module_id].declaration?; | 215 | let decl = def_map[self.module_id].declaration?; |
216 | let ast = decl.to_node(db); | 216 | let ast = decl.to_node(db); |
217 | Some((decl.file_id(), ast)) | 217 | Some((decl.file_id(), ast).into()) |
218 | } | 218 | } |
219 | 219 | ||
220 | /// Returns the syntax of the last path segment corresponding to this import | 220 | /// Returns the syntax of the last path segment corresponding to this import |