From 28a3c881576ee09fe8ab9dfff4a15ffb89e1c149 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 18 Apr 2016 05:04:46 -0400 Subject: pacify the merciless acrichto (somewhat) Also add a comment or two to pacify the merciless self-critic, who hates a closure without a comment. --- src/libsyntax/errors/json.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/libsyntax/errors') diff --git a/src/libsyntax/errors/json.rs b/src/libsyntax/errors/json.rs index 5a195e9f078..821617bfe89 100644 --- a/src/libsyntax/errors/json.rs +++ b/src/libsyntax/errors/json.rs @@ -237,14 +237,12 @@ impl DiagnosticSpan { None, backtrace, je); - let def_site_span = - bt.def_site_span - .map(|sp| { - Self::from_span_and_backtrace(sp, - None, - vec![].into_iter(), - je) - }); + let def_site_span = bt.def_site_span.map(|sp| { + Self::from_span_and_backtrace(sp, + None, + vec![].into_iter(), + je) + }); Box::new(DiagnosticSpanMacroExpansion { span: call_site, macro_decl_name: bt.macro_decl_name, -- cgit 1.4.1-3-g733a5