From 1fd6fdd652008c8735554d11912fb624732cf146 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 27 Oct 2020 13:43:59 +0100 Subject: [PATCH] Address review comment from earlier pull-request --- extractor/src/extractor.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extractor/src/extractor.rs b/extractor/src/extractor.rs index c8f56e8095e..4593c16ff8e 100644 --- a/extractor/src/extractor.rs +++ b/extractor/src/extractor.rs @@ -22,7 +22,7 @@ impl Extractor { let span = span!( Level::TRACE, "extract", - file = &path.display().to_string()[..] + file = %path.display() ); let _enter = span.enter(); @@ -98,11 +98,7 @@ struct Visitor<'a> { impl Visitor<'_> { fn enter_node(&mut self, node: Node) -> bool { if node.is_error() { - error!( - "{}:{}: parse error", - &self.path, - node.start_position().row, - ); + error!("{}:{}: parse error", &self.path, node.start_position().row); return false; } if node.is_missing() {