File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -275,14 +275,14 @@ fn merge_string_expressions<'a>(
275275 "" . to_string ( )
276276 } else if idx > 0 && idx == string_literals. len ( ) - 1 {
277277 if string_literals. len ( ) == other_expressions. len ( ) {
278- format ! ( " {} " , trimmed )
278+ format ! ( " {trimmed } " )
279279 } else {
280- format ! ( " {}" , trimmed )
280+ format ! ( " {trimmed}" )
281281 }
282282 } else if idx == string_literals. len ( ) - 1 {
283283 trimmed. to_string ( )
284284 } else {
285- format ! ( "{} " , trimmed )
285+ format ! ( "{trimmed } " )
286286 }
287287 } ) ,
288288 cooked : None ,
@@ -322,7 +322,7 @@ fn merge_object_expressions<'a>(
322322 ast_builder. alloc_object_expression (
323323 SPAN ,
324324 oxc_allocator:: Vec :: from_iter_in (
325- expressions. into_iter ( ) . map ( |ex| {
325+ expressions. iter ( ) . map ( |ex| {
326326 ObjectPropertyKind :: SpreadProperty (
327327 ast_builder. alloc_spread_element ( SPAN , ex. clone_in ( ast_builder. allocator ) ) ,
328328 )
You can’t perform that action at this time.
0 commit comments