diff options
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r-- | crates/ra_ide_api/src/display/navigation_target.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index 765cf883b..7ea336c50 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs | |||
@@ -81,7 +81,7 @@ impl NavigationTarget { | |||
81 | ) -> NavigationTarget { | 81 | ) -> NavigationTarget { |
82 | let file = db.parse(file_id); | 82 | let file = db.parse(file_id); |
83 | let (name, full_range) = match pat { | 83 | let (name, full_range) = match pat { |
84 | Either::A(pat) => match pat.to_node(&file).kind() { | 84 | Either::A(pat) => match pat.to_node(file.syntax()).kind() { |
85 | ast::PatKind::BindPat(pat) => { | 85 | ast::PatKind::BindPat(pat) => { |
86 | return NavigationTarget::from_bind_pat(file_id, &pat) | 86 | return NavigationTarget::from_bind_pat(file_id, &pat) |
87 | } | 87 | } |