@@ -390,7 +390,7 @@ pub fn format_param_list_ir(
390390 flat_close_padding : token_left_spacing_docs ( plan, close. as_ref ( ) ) ,
391391 grouped_padding : grouped_padding_from_pair ( plan, open. as_ref ( ) , close. as_ref ( ) ) ,
392392 flat_trailing : vec ! [ ] ,
393- grouped_trailing : trailing_comma_ir ( ctx . config . output . trailing_comma . clone ( ) ) ,
393+ grouped_trailing : trailing_comma_ir ( TrailingComma :: Never ) ,
394394 } ,
395395 )
396396}
@@ -501,7 +501,7 @@ fn format_param_list_with_comments(
501501 let ( open, close) = paren_tokens ( params. syntax ( ) ) ;
502502 let comma = first_direct_token ( params. syntax ( ) , LuaTokenKind :: TkComma ) ;
503503 let mut docs = vec ! [ token_or_kind_doc( open. as_ref( ) , LuaTokenKind :: TkLeftParen ) ] ;
504- let trailing = trailing_comma_ir ( ctx . config . output . trailing_comma . clone ( ) ) ;
504+ let trailing = trailing_comma_ir ( TrailingComma :: Never ) ;
505505
506506 if !collected. comments_after_open . is_empty ( ) || !collected. entries . is_empty ( ) {
507507 let entry_count = collected. entries . len ( ) ;
@@ -834,7 +834,7 @@ fn format_call_arg_list_from_docs(
834834 flat_close_padding : token_left_spacing_docs ( plan, close. as_ref ( ) ) ,
835835 grouped_padding : grouped_padding_from_pair ( plan, open. as_ref ( ) , close. as_ref ( ) ) ,
836836 flat_trailing : vec ! [ ] ,
837- grouped_trailing : trailing_comma_ir ( ctx . config . output . trailing_comma . clone ( ) ) ,
837+ grouped_trailing : trailing_comma_ir ( TrailingComma :: Never ) ,
838838 } ,
839839 )
840840}
@@ -1277,7 +1277,7 @@ fn format_call_arg_list_with_comments(
12771277 let ( open, close) = paren_tokens ( args_list. syntax ( ) ) ;
12781278 let comma = first_direct_token ( args_list. syntax ( ) , LuaTokenKind :: TkComma ) ;
12791279 let mut docs = vec ! [ token_or_kind_doc( open. as_ref( ) , LuaTokenKind :: TkLeftParen ) ] ;
1280- let trailing = trailing_comma_ir ( ctx . config . output . trailing_comma . clone ( ) ) ;
1280+ let trailing = trailing_comma_ir ( TrailingComma :: Never ) ;
12811281
12821282 if !collected. comments_after_open . is_empty ( ) || !collected. entries . is_empty ( ) {
12831283 let entry_count = collected. entries . len ( ) ;
@@ -3182,7 +3182,7 @@ fn format_compact_call_arg_list(
31823182 flat_close_padding : token_left_spacing_docs ( plan, close. as_ref ( ) ) ,
31833183 grouped_padding : grouped_padding_from_pair ( plan, open. as_ref ( ) , close. as_ref ( ) ) ,
31843184 flat_trailing : vec ! [ ] ,
3185- grouped_trailing : trailing_comma_ir ( ctx . config . output . trailing_comma . clone ( ) ) ,
3185+ grouped_trailing : trailing_comma_ir ( TrailingComma :: Never ) ,
31863186 } ,
31873187 ) )
31883188}
0 commit comments