Skip to content

Commit e5dd51b

Browse files
committed
Fix warning after upgrade of js of ocaml
1 parent a4f3a7f commit e5dd51b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/worker/worker.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let sync_get url =
1414
Js.Opt.case
1515
(File.CoerceTo.arrayBuffer x##.response)
1616
(fun () ->
17-
Firebug.console##log (Js.string "Failed to receive file");
17+
Js_of_ocaml.Console.console##log (Js.string "Failed to receive file");
1818
None)
1919
(fun b -> Some (Typed_array.String.of_arrayBuffer b))
2020
| _ -> None
@@ -35,7 +35,6 @@ let add_dynamic_cmis dcs =
3535

3636
let fetch =
3737
(fun filename ->
38-
let open Option.Infix in
3938
let url = Filename.concat dcs.Protocol.dcs_url filename in
4039
sync_get url)
4140
in
@@ -234,7 +233,7 @@ let on_message marshaled_message =
234233
in
235234
let errors =
236235
dispatch source query
237-
|> List.map ~f:(fun (Location.{kind; main=_ ; sub; source} as error) ->
236+
|> List.map ~f:(fun (Location.{kind; main=_ ; sub; source; _} as error) ->
238237
let of_sub sub =
239238
Location.print_sub_msg Format.str_formatter sub;
240239
String.trim (Format.flush_str_formatter ())

0 commit comments

Comments
 (0)