diff options
author | Aleksey Kladov <[email protected]> | 2020-07-29 23:23:03 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-29 23:23:03 +0100 |
commit | 6636f56e79b55f22b88094b7edaed6ec88880500 (patch) | |
tree | d042009ea61be66aee1710070c09893447847c9d /crates/ra_hir_expand/src/ast_id_map.rs | |
parent | 16caadb404de465d8ea1cb6a107740ef004f232b (diff) |
Rename ModuleItem -> Item
Diffstat (limited to 'crates/ra_hir_expand/src/ast_id_map.rs')
-rw-r--r-- | crates/ra_hir_expand/src/ast_id_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_expand/src/ast_id_map.rs b/crates/ra_hir_expand/src/ast_id_map.rs index f4d31526a..8bfe1b4ba 100644 --- a/crates/ra_hir_expand/src/ast_id_map.rs +++ b/crates/ra_hir_expand/src/ast_id_map.rs | |||
@@ -73,7 +73,7 @@ impl AstIdMap { | |||
73 | // change parent's id. This means that, say, adding a new function to a | 73 | // change parent's id. This means that, say, adding a new function to a |
74 | // trait does not change ids of top-level items, which helps caching. | 74 | // trait does not change ids of top-level items, which helps caching. |
75 | bfs(node, |it| { | 75 | bfs(node, |it| { |
76 | if let Some(module_item) = ast::ModuleItem::cast(it) { | 76 | if let Some(module_item) = ast::Item::cast(it) { |
77 | res.alloc(module_item.syntax()); | 77 | res.alloc(module_item.syntax()); |
78 | } | 78 | } |
79 | }); | 79 | }); |