Skip to content

Commit 0a38111

Browse files
format
1 parent bbdff6b commit 0a38111

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

typing/typemode.ml

+6-5
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ let transl_modifier_annots annots =
100100
let modifiers = List.fold_left step empty_modifiers annots in
101101
(* Since [yielding] is the default mode in presence of [local],
102102
the [global] modifier must also apply [unyielding] unless specified. *)
103-
match Opt_axis_collection.get ~axis:(Modal Yielding) modifiers,
104-
Opt_axis_collection.get ~axis:(Modal Locality) modifiers with
103+
match
104+
( Opt_axis_collection.get ~axis:(Modal Yielding) modifiers,
105+
Opt_axis_collection.get ~axis:(Modal Locality) modifiers )
106+
with
105107
| None, Some Global ->
106-
Opt_axis_collection.set ~axis:(Modal Yielding)
107-
modifiers (Some Yielding.Const.Unyielding)
108+
Opt_axis_collection.set ~axis:(Modal Yielding) modifiers
109+
(Some Yielding.Const.Unyielding)
108110
| _, _ -> modifiers
109111

110-
111112
let default_mode_annots (annots : Alloc.Const.Option.t) =
112113
(* Unlike all other modes, [yielding] has a different default
113114
depending on whether [areality] is [Global] or [Local]. *)

0 commit comments

Comments
 (0)