Skip to content

Commit b88388d

Browse files
authored
nit(engine): named argument
1 parent 96e492b commit b88388d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/bin/lib.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ let parse_id_table_node (json : Yojson.Safe.t) :
186186
in
187187
(table, value)
188188

189-
let load_table (check_version : bool) : Yojson.Safe.t =
189+
let load_table ?(check_version = true) : Yojson.Safe.t =
190190
let table, json =
191191
Hax_io.read_json () |> Option.value_exn |> parse_id_table_node
192192
in
@@ -212,7 +212,7 @@ Please reinstall hax.
212212
json
213213
214214
let parse_options () =
215-
let json = load_table true in
215+
let json = load_table ~check_version:true in
216216
let options = [%of_yojson: Types.engine_options] json in
217217
Profiling.enabled := options.backend.profile;
218218
options
@@ -258,7 +258,7 @@ module ExportFStarAst = Export_ast.Make (Fstar_backend.InputLanguage)
258258
let driver_for_rust_engine () : unit =
259259
let query : Rust_engine_types.query =
260260
(* TODO: support for table *)
261-
(* let json = load_table false in *)
261+
(* let json = load_table ~check_version:false in *)
262262
let json = Hax_io.read_json () |> Option.value_exn in
263263
[%of_yojson: Rust_engine_types.query] json
264264
in

0 commit comments

Comments
 (0)