Skip to content

Commit d52a846

Browse files
committed
don't prefix Stdlib
1 parent 041fc71 commit d52a846

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

lib/api_local.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
open Common
22
open Devkit
33
open Printf
4-
module Filename = Stdlib.Filename
5-
module Sys = Stdlib.Sys
64

75
let cwd = Sys.getcwd ()
86
let github_cache_dir = Filename.concat cwd "github-api-cache"

lib/api_remote.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module Slack : Api.Slack = struct
127127
(* must read whole response to update lexer state *)
128128
ignore (Slack_j.read_ok_res s l)
129129

130-
let lookup_user_cache = Stdlib.Hashtbl.create 50
130+
let lookup_user_cache = Hashtbl.create 50
131131

132132
let lookup_user' ~(ctx : Context.t) ~(cfg : Config_t.config) ~email () =
133133
(* Check if config holds the Github to Slack email mapping *)
@@ -140,15 +140,15 @@ module Slack : Api.Slack = struct
140140
with
141141
| Error _ as e -> Lwt.return e
142142
| Ok user ->
143-
Stdlib.Hashtbl.replace lookup_user_cache email user;
143+
Hashtbl.replace lookup_user_cache email user;
144144
Lwt.return_ok user
145145

146146
(** [lookup_user cfg email] queries slack for a user profile with [email] *)
147147
let lookup_user ?(cache : [ `Use | `Refresh ] = `Use) ~(ctx : Context.t) ~(cfg : Config_t.config) ~email () =
148148
match cache with
149149
| `Refresh -> lookup_user' ~ctx ~cfg ~email ()
150150
| `Use ->
151-
match Stdlib.Hashtbl.find_opt lookup_user_cache email with
151+
match Hashtbl.find_opt lookup_user_cache email with
152152
| Some user -> Lwt.return_ok user
153153
| None -> lookup_user' ~ctx ~cfg ~email ()
154154

lib/context.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
open Common
22
open Devkit
3-
module Sys = Stdlib.Sys
43

54
let log = Log.from "context"
65

lib/github.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let repo_of_notification = function
2525
| Status n -> n.repository
2626

2727
let commits_branch_of_ref ref =
28-
match Stdlib.String.split_on_char '/' ref with
28+
match String.split_on_char '/' ref with
2929
| "refs" :: "heads" :: l -> String.concat "/" l
3030
| _ -> ref
3131

src/monorobot.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
open Devkit
22
open Lib
33
open Cmdliner
4-
module Filename = Stdlib.Filename
54

65
let log = Log.from "monorobot"
76

87
(* entrypoints *)
98

109
let http_server_action addr port config secrets state logfile loglevel =
1110
Daemon.logfile := logfile;
12-
Stdlib.Option.iter Log.set_loglevels loglevel;
11+
Option.may Log.set_loglevels loglevel;
1312
Log.reopen !Daemon.logfile;
1413
Signal.setup_lwt ();
1514
Daemon.install_signal_handlers ();
@@ -145,4 +144,4 @@ let default, info =
145144
let () =
146145
let cmds = [ run; check_gh; check_slack ] in
147146
let group = Cmd.group ~default info cmds in
148-
Stdlib.exit @@ Cmd.eval group
147+
exit @@ Cmd.eval group

test/test.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
open Devkit
22
open Lib
3-
module Filename = Stdlib.Filename
4-
module Sys = Stdlib.Sys
53

64
let log = Log.from "test"
75
let mock_payload_dir = Filename.concat Filename.parent_dir_name "mock_payloads"

0 commit comments

Comments
 (0)