about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2021-01-23 00:59:32 -0500
committerFelix S. Klock II <pnkfelix@pnkfx.org>2021-02-01 17:08:38 -0500
commita7745d965e48716873113d44f77cfea2865a0a4a (patch)
tree3aa627ac432188ae151b64ba4a80c79b808b13fd
parent532332fa8f84b9b015baa2c065a9b1927259578c (diff)
downloadrust-a7745d965e48716873113d44f77cfea2865a0a4a.tar.gz
rust-a7745d965e48716873113d44f77cfea2865a0a4a.zip
placate tidy.
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/debug.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/debug.rs b/compiler/rustc_builtin_macros/src/deriving/debug.rs
index 55ab9d38385..ba43be6ae9a 100644
--- a/compiler/rustc_builtin_macros/src/deriving/debug.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/debug.rs
@@ -97,11 +97,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
         }
         ast::VariantData::Struct(..) => {
             // normal struct/struct variant
-            let fn_path_debug_struct =
-                cx.std_path(&[sym::fmt, sym::Formatter, sym::debug_struct]);
-            let expr = cx.expr_call_global(
-                span, fn_path_debug_struct, vec![fmt, name]
-            );
+            let fn_path_debug_struct = cx.std_path(&[sym::fmt, sym::Formatter, sym::debug_struct]);
+            let expr = cx.expr_call_global(span, fn_path_debug_struct, vec![fmt, name]);
             stmts.push(cx.stmt_let(DUMMY_SP, true, builder, expr));
 
             for field in fields {
@@ -115,11 +112,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
                 let field = cx.expr_addr_of(field.span, field.self_.clone());
                 let field = cx.expr_addr_of(field.span, field);
                 let builder_recv = make_mut_borrow(cx, span, builder_expr.clone());
-                let expr = cx.expr_call_global(
-                    span,
-                    fn_path_field,
-                    vec![builder_recv, name, field],
-                );
+                let expr =
+                    cx.expr_call_global(span, fn_path_field, vec![builder_recv, name, field]);
                 stmts.push(stmt_let_underscore(cx, span, expr));
             }
             fn_path_finish = cx.std_path(&[sym::fmt, sym::DebugStruct, sym::finish]);