From 3ffd5dd2a63e8efe182e79439a879ec1f9420b77 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 8 Jan 2019 11:47:28 +0300 Subject: migrate ra_analysis to new rowan --- crates/ra_analysis/src/goto_defenition.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_analysis/src/goto_defenition.rs') diff --git a/crates/ra_analysis/src/goto_defenition.rs b/crates/ra_analysis/src/goto_defenition.rs index aa0616e3b..0bcf13ebd 100644 --- a/crates/ra_analysis/src/goto_defenition.rs +++ b/crates/ra_analysis/src/goto_defenition.rs @@ -23,7 +23,7 @@ pub(crate) fn goto_defenition( pub(crate) fn reference_defenition( db: &RootDatabase, file_id: FileId, - name_ref: ast::NameRef, + name_ref: &ast::NameRef, ) -> Cancelable> { if let Some(fn_descr) = hir::source_binder::function_from_child_node(db, file_id, name_ref.syntax())? @@ -53,7 +53,7 @@ pub(crate) fn reference_defenition( fn name_defenition( db: &RootDatabase, file_id: FileId, - name: ast::Name, + name: &ast::Name, ) -> Cancelable>> { if let Some(module) = name.syntax().parent().and_then(ast::Module::cast) { if module.has_semi() { -- cgit v1.2.3