Skip to content

Commit 343ff8c

Browse files
committed
Refactor IntMap to use built-in Int module in Map.Make
Signed-off-by: Ming Lu <[email protected]>
1 parent ccbb428 commit 343ff8c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ocaml/xenopsd/xc/xenops_server_xen.ml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ module D = Debug.Make (struct let name = service_name end)
2525
open D
2626
module RRDD = Rrd_client.Client
2727
module StringSet = Set.Make (String)
28-
29-
module IntMap = Map.Make (struct
30-
type t = int
31-
32-
let compare = compare
33-
end)
28+
module IntMap = Map.Make (Int)
3429

3530
let finally = Xapi_stdext_pervasives.Pervasiveext.finally
3631

0 commit comments

Comments
 (0)