From 028595548bea83508c9626835ac84409c83778ed Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Wed, 4 Mar 2020 22:29:55 +0800 Subject: Fix #3436 --- crates/ra_hir_expand/src/db.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir_expand') diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index d29985d0b..73137f33b 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs @@ -181,13 +181,9 @@ pub(crate) fn parse_macro( err, node.value ); - - let mut parent = loc.kind.file_id().call_node(db); + let mut parent = loc.kind.file_id().call_node(db); while let Some(node) = parent.clone() { - log::warn!( - "parent: macro_call: {:#})", - node.value - ); + log::warn!("parent: macro_call: {:#})", node.value); parent = node.file_id.call_node(db); } } -- cgit v1.2.3