Skip to content

Commit 27e3e56

Browse files
committed
Use MB.of_int
1 parent 97c7dad commit 27e3e56

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/analysis/index_occurrences.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ let iterator ~current_buffer_path ~index ~stamp ~reduce_for_uid =
9191

9292
let items ~index ~stamp (config : Mconfig.t) items =
9393
let module Shape_reduce = Shape_reduce.Make (struct
94-
let fuel () : Misc_stdlib.Maybe_bounded.t = Bounded { bound = 10 }
94+
let fuel () = Misc_stdlib.Maybe_bounded.of_int 10
9595

9696
let read_unit_shape ~diagnostics:_ ~unit_name =
9797
log ~title:"read_unit_shape" "inspecting %s" unit_name;

src/analysis/locate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ let get_linked_uids ~config ~comp_unit decl_uid =
880880
let find_definition_uid ~config ~env ~(decl : Env_lookup.item) path =
881881
let namespace = decl.namespace in
882882
let module Reduce = Shape_reduce.Make (struct
883-
let fuel () : Misc_stdlib.Maybe_bounded.t = Bounded { bound = 10 }
883+
let fuel () = Misc_stdlib.Maybe_bounded.of_int 10
884884
let read_unit_shape ~diagnostics:_ ~unit_name =
885885
log ~title:"read_unit_shape" "inspecting %s" unit_name;
886886
match

src/ocaml-index/lib/index.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module Reduce_conf (Loaded_shapes : sig
5050
val shapes : (Compilation_unit.t, Shape.t) Hashtbl.t
5151
end) =
5252
struct
53-
let fuel () : Misc_stdlib.Maybe_bounded.t = Bounded { bound = 10 }
53+
let fuel () = Misc_stdlib.Maybe_bounded.of_int 10
5454

5555
let try_load ~unit_name () =
5656
match

0 commit comments

Comments
 (0)