diff options
author | Aleksey Kladov <[email protected]> | 2019-10-29 12:25:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-29 12:25:46 +0000 |
commit | 2a5254c106df41dc53c34508e9f5ba77243b7a51 (patch) | |
tree | 23ba452140afc9d3305c741bad0f823aaf6f3c32 /crates/ra_hir_expand/src/lib.rs | |
parent | d095d9273eb2c03d1c28e0122c21fccf4099660e (diff) |
reduce visibility
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 | } |