File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1467,18 +1467,9 @@ and fmt_args_grouped ?epi:(global_epi = noop) c ctx args =
1467
1467
(list_fl args (fmt_arg c) $ fmt_if_k last global_epi)
1468
1468
$ fmt_if_k (not last) (break 1 0 )
1469
1469
in
1470
- let is_simple (lbl , x ) =
1470
+ let is_simple (_lbl , x ) =
1471
1471
let xexp = sub_exp ~ctx x in
1472
- let output =
1473
- Cmts. preserve
1474
- ~cache_key: (Arg (lbl, x))
1475
- (fun () ->
1476
- let cmts = Cmts. drop_before c.cmts x.pexp_loc in
1477
- fmt_arg ~first: false ~last: false {c with cmts} (lbl, x) )
1478
- c.cmts
1479
- in
1480
- let breaks = String. (rstrip output |> is_substring ~substring: " \n " ) in
1481
- is_simple c.conf (expression_width c) xexp && not breaks
1472
+ is_simple c.conf (expression_width c) xexp
1482
1473
in
1483
1474
let break x y =
1484
1475
Cmts. has_after c.cmts (snd x).pexp_loc || not (is_simple x && is_simple y)
You can’t perform that action at this time.
0 commit comments