From 9cba67b2ad0ef43b5c405f21f516c9ebee63a932 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 12 May 2019 23:03:37 +0300 Subject: simplify --- crates/ra_ide_api/src/goto_definition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 533c229fe..adae29e9c 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs @@ -69,7 +69,7 @@ pub(crate) fn reference_definition( .and_then(ast::MacroCall::cast) { tested_by!(goto_definition_works_for_macros); - if let Some(macro_call) = analyzer.resolve_macro_call(db, file_id, macro_call) { + if let Some(macro_call) = analyzer.resolve_macro_call(macro_call) { return Exact(NavigationTarget::from_macro_def(db, macro_call)); } } -- cgit v1.2.3