File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -296,20 +296,19 @@ fn rewrite_macro_inner(
296
296
// If we are rewriting `vec!` macro or other special macros,
297
297
// then we can rewrite this as a usual array literal.
298
298
// Otherwise, we must preserve the original existence of trailing comma.
299
- let macro_name = & macro_name. as_str ( ) ;
300
299
let mut force_trailing_comma = if trailing_comma {
301
300
Some ( SeparatorTactic :: Always )
302
301
} else {
303
302
Some ( SeparatorTactic :: Never )
304
303
} ;
305
- if FORCED_BRACKET_MACROS . contains ( macro_name ) && !is_nested_macro {
304
+ if is_forced_bracket && !is_nested_macro {
306
305
context. leave_macro ( ) ;
307
306
if context. use_block_indent ( ) {
308
307
force_trailing_comma = Some ( SeparatorTactic :: Vertical ) ;
309
308
} ;
310
309
}
311
310
let rewrite = rewrite_array (
312
- macro_name,
311
+ & macro_name,
313
312
arg_vec. iter ( ) ,
314
313
mac. span ( ) ,
315
314
context,
You can’t perform that action at this time.
0 commit comments