@@ -97,11 +97,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
97
97
}
98
98
ast:: VariantData :: Struct ( ..) => {
99
99
// 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] ) ;
105
102
stmts. push ( cx. stmt_let ( DUMMY_SP , true , builder, expr) ) ;
106
103
107
104
for field in fields {
@@ -115,11 +112,8 @@ fn show_substructure(cx: &mut ExtCtxt<'_>, span: Span, substr: &Substructure<'_>
115
112
let field = cx. expr_addr_of ( field. span , field. self_ . clone ( ) ) ;
116
113
let field = cx. expr_addr_of ( field. span , field) ;
117
114
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] ) ;
123
117
stmts. push ( stmt_let_underscore ( cx, span, expr) ) ;
124
118
}
125
119
fn_path_finish = cx. std_path ( & [ sym:: fmt, sym:: DebugStruct , sym:: finish] ) ;
0 commit comments