diff options
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r-- | crates/ra_ide_api/src/display/navigation_target.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index e19c071b0..45002d098 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs | |||
@@ -238,10 +238,7 @@ impl NavigationTarget { | |||
238 | } | 238 | } |
239 | } | 239 | } |
240 | 240 | ||
241 | pub(crate) fn from_macro_def( | 241 | pub(crate) fn from_macro_def(db: &RootDatabase, macro_call: hir::MacroDef) -> NavigationTarget { |
242 | db: &RootDatabase, | ||
243 | macro_call: hir::MacroByExampleDef, | ||
244 | ) -> NavigationTarget { | ||
245 | let (file_id, node) = macro_call.source(db); | 242 | let (file_id, node) = macro_call.source(db); |
246 | log::debug!("nav target {}", node.syntax().debug_dump()); | 243 | log::debug!("nav target {}", node.syntax().debug_dump()); |
247 | NavigationTarget::from_named(file_id.original_file(db), &*node) | 244 | NavigationTarget::from_named(file_id.original_file(db), &*node) |