From 2456b355f264c7b79a6f8c8f296e70b27e9bb6c9 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Fri, 16 Aug 2019 19:05:44 +0200 Subject: [PATCH] Run rustfmt --- clippy_lints/src/utils/internal_lints.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clippy_lints/src/utils/internal_lints.rs b/clippy_lints/src/utils/internal_lints.rs index 9f4ea395d..855b1e6ef 100644 --- a/clippy_lints/src/utils/internal_lints.rs +++ b/clippy_lints/src/utils/internal_lints.rs @@ -180,10 +180,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LintWithoutLintPass { // not able to capture the error. // Therefore, we need to climb the macro expansion tree and find the // actual span that invoked `declare_tool_lint!`: - let lint_span = lint_span - .ctxt() - .outer_expn_data() - .call_site; + let lint_span = lint_span.ctxt().outer_expn_data().call_site; if !self.registered_lints.contains(lint_name) { span_lint(