Skip to content

Commit aa8fdad

Browse files
committed
placate tidy.
1 parent d78f0a1 commit aa8fdad

File tree

1 file changed

+4
-10
lines changed
  • compiler/rustc_builtin_macros/src/deriving

1 file changed

+4
-10
lines changed

compiler/rustc_builtin_macros/src/deriving/debug.rs

+4-10
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
9797
}
9898
ast::VariantData::Struct(..) => {
9999
// normal struct/struct variant
100-
let fn_path_debug_struct =
101-
cx.std_path(&[sym::fmt, sym::Formatter, sym::debug_struct]);
102-
let expr = cx.expr_call_global(
103-
span, fn_path_debug_struct, vec![fmt, name]
104-
);
100+
let fn_path_debug_struct = cx.std_path(&[sym::fmt, sym::Formatter, sym::debug_struct]);
101+
let expr = cx.expr_call_global(span, fn_path_debug_struct, vec![fmt, name]);
105102
stmts.push(cx.stmt_let(DUMMY_SP, true, builder, expr));
106103

107104
for field in fields {
@@ -115,11 +112,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
115112
let field = cx.expr_addr_of(field.span, field.self_.clone());
116113
let field = cx.expr_addr_of(field.span, field);
117114
let builder_recv = make_mut_borrow(cx, span, builder_expr.clone());
118-
let expr = cx.expr_call_global(
119-
span,
120-
fn_path_field,
121-
vec![builder_recv, name, field],
122-
);
115+
let expr =
116+
cx.expr_call_global(span, fn_path_field, vec![builder_recv, name, field]);
123117
stmts.push(stmt_let_underscore(cx, span, expr));
124118
}
125119
fn_path_finish = cx.std_path(&[sym::fmt, sym::DebugStruct, sym::finish]);

0 commit comments

Comments
 (0)