fix: don't insert trailing comma on struct lit rest in mac def
This commit is contained in:
parent
d80a42fdd8
commit
b8f318c303
@ -1629,7 +1629,10 @@ fn rewrite_struct_lit<'a>(
|
||||
nested_shape,
|
||||
tactic,
|
||||
context,
|
||||
force_no_trailing_comma || has_base || !context.use_block_indent(),
|
||||
force_no_trailing_comma
|
||||
|| has_base
|
||||
|| !context.use_block_indent()
|
||||
|| matches!(struct_rest, ast::StructRest::Rest(_)),
|
||||
);
|
||||
|
||||
write_list(&item_vec, &fmt)?
|
||||
|
Loading…
x
Reference in New Issue
Block a user