Fix builtin formatting

This commit is contained in:
Anthony Bullard 2025-01-08 15:20:04 -06:00
parent 739dda6f5e
commit 3a6225c354
No known key found for this signature in database
6 changed files with 227 additions and 142 deletions

View file

@ -107,7 +107,6 @@ fn format_expr_only(
if buf.flags().parens_and_commas {
fmt_pnc_apply(loc_expr, &Collection::with_items(loc_args), indent, buf);
} else if !apply_needs_parens || loc_args.is_empty() {
println!("No need parens");
fmt_apply(loc_expr, loc_args, indent, buf);
} else {
fmt_parens(item, buf, indent);