diff options
Diffstat (limited to 'crates/ra_hir_expand/src/lib.rs')
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 1fb124374..a31b9fa4c 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -172,7 +172,6 @@ impl<N: AstNode> AstId<N> { | |||
172 | 172 | ||
173 | pub fn to_node(&self, db: &impl AstDatabase) -> N { | 173 | pub fn to_node(&self, db: &impl AstDatabase) -> N { |
174 | let root = db.parse_or_expand(self.file_id).unwrap(); | 174 | let root = db.parse_or_expand(self.file_id).unwrap(); |
175 | let node = db.ast_id_map(self.file_id)[self.file_ast_id.into()].to_node(&root); | 175 | db.ast_id_map(self.file_id).get(self.file_ast_id).to_node(&root) |
176 | N::cast(node).unwrap() | ||
177 | } | 176 | } |
178 | } | 177 | } |