diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-18 05:04:46 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-04-21 04:42:25 -0400 |
| commit | 28a3c881576ee09fe8ab9dfff4a15ffb89e1c149 (patch) | |
| tree | 087bc3f3bc684316853a206f6395cb1948be2ecb /src/libsyntax/errors | |
| parent | bf624c413f3eb593bd90496595900990b320f30a (diff) | |
| download | rust-28a3c881576ee09fe8ab9dfff4a15ffb89e1c149.tar.gz rust-28a3c881576ee09fe8ab9dfff4a15ffb89e1c149.zip | |
pacify the merciless acrichto (somewhat)
Also add a comment or two to pacify the merciless self-critic, who hates a closure without a comment.
Diffstat (limited to 'src/libsyntax/errors')
| -rw-r--r-- | src/libsyntax/errors/json.rs | 14 |
1 files changed, 6 insertions, 8 deletions
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, |
