Skip to content

Commit f5b39c1

Browse files
committed
Fix: warnings
1 parent 84ce517 commit f5b39c1

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/app/learnocaml_lti_main.ml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
open Js_utils
99
open Lwt
10-
open Learnocaml_data
1110
open Learnocaml_common
1211

1312
module H = Tyxml_js.Html5

src/app/learnocaml_upgrade_main.ml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
open Js_utils
99
open Lwt
1010
open Learnocaml_common
11-
open Learnocaml_api
1211

1312
module El = struct
1413
let id s = s, find_component s

src/main/learnocaml_client.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ end
10921092
module Server_config = struct
10931093
let doc = "Get a structured json containing an information about the use_password compatibility"
10941094

1095-
let server_config o = (*get_config_o ~allow_static:true o
1095+
let server_config _o = (*get_config_o ~allow_static:true o
10961096
>>= fun {ConfigFile.server;token} ->
10971097
fetch server (Learnocaml_api.Server_config)
10981098
>>= (fun index->

src/server/learnocaml_server.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ open Lwt.Infix
4141
let read_static_file path =
4242
Lwt_io.(with_file ~mode: Input (sanitise_path !static_dir path) read)
4343

44-
exception Too_long_body
44+
(*exception Too_long_body
4545
4646
let string_of_stream ?(max_size = 1024 * 1024) s =
4747
let b = Buffer.create (64 * 1024) in
@@ -61,7 +61,7 @@ let string_of_stream ?(max_size = 1024 * 1024) s =
6161
end begin function
6262
| Too_long_body -> Lwt.return None
6363
| e -> Lwt.fail e
64-
end
64+
end*)
6565

6666
module Api = Learnocaml_api
6767

0 commit comments

Comments
 (0)