diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/impls.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/impls.rs b/crates/ra_ide_api/src/impls.rs index 16a05758a..469d56d63 100644 --- a/crates/ra_ide_api/src/impls.rs +++ b/crates/ra_ide_api/src/impls.rs | |||
@@ -14,9 +14,8 @@ pub(crate) fn goto_implementation( | |||
14 | let file = db.parse(position.file_id); | 14 | let file = db.parse(position.file_id); |
15 | let syntax = file.syntax(); | 15 | let syntax = file.syntax(); |
16 | 16 | ||
17 | let krate_id = db.crate_for(position.file_id).pop()?; | ||
18 | let krate = hir::Crate { crate_id: krate_id }; | ||
19 | let module = source_binder::module_from_position(db, position)?; | 17 | let module = source_binder::module_from_position(db, position)?; |
18 | let krate = module.krate(db)?; | ||
20 | 19 | ||
21 | let node = find_node_at_offset::<ast::NominalDef>(syntax, position.offset)?; | 20 | let node = find_node_at_offset::<ast::NominalDef>(syntax, position.offset)?; |
22 | let ty = match node.kind() { | 21 | let ty = match node.kind() { |