aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-06-11 15:36:52 +0100
committerAleksey Kladov <[email protected]>2019-06-11 16:28:51 +0100
commita6e339e822bcba4d81f1ab3912ca9612be9b6a0a (patch)
tree2d6444f28ea0501ae768c007243e25b86fef06e2 /crates/ra_ide_api/src
parentf411c2988d40bbdebc5c9a63ce4bfb883a2fbca1 (diff)
use Source for impl block
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/display/navigation_target.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs
index 2e3e3863a..640d68544 100644
--- a/crates/ra_ide_api/src/display/navigation_target.rs
+++ b/crates/ra_ide_api/src/display/navigation_target.rs
@@ -228,12 +228,12 @@ impl NavigationTarget {
228 db: &RootDatabase, 228 db: &RootDatabase,
229 impl_block: hir::ImplBlock, 229 impl_block: hir::ImplBlock,
230 ) -> NavigationTarget { 230 ) -> NavigationTarget {
231 let (file_id, node) = impl_block.source(db); 231 let src = impl_block.source(db);
232 NavigationTarget::from_syntax( 232 NavigationTarget::from_syntax(
233 file_id.as_original_file(), 233 src.file_id.as_original_file(),
234 "impl".into(), 234 "impl".into(),
235 None, 235 None,
236 node.syntax(), 236 src.ast.syntax(),
237 None, 237 None,
238 None, 238 None,
239 ) 239 )