We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719334d commit 037a29fCopy full SHA for 037a29f
rust/kcl-lib/src/unparser.rs
@@ -399,8 +399,8 @@ impl CallExpressionKw {
399
}
400
401
let arg_list = self.recast_args(options, indentation_level, ctxt);
402
- let args = arg_list.clone().join(", ");
403
let has_lots_of_args = arg_list.len() >= 4;
+ let args = arg_list.join(", ");
404
let some_arg_is_already_multiline = arg_list.len() > 1 && arg_list.iter().any(|arg| arg.contains('\n'));
405
let multiline = has_lots_of_args || some_arg_is_already_multiline;
406
if multiline {
0 commit comments