Skip to content

Commit 3266e4d

Browse files
committed
Simplify Checks code
1 parent 6d5ec33 commit 3266e4d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/common/util/checks.ml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module Category = struct
4040
| DoubleFree
4141
| NegativeArraySize
4242
| StubCondition
43-
[@@deriving hash, eq, show]
43+
[@@deriving hash, eq]
4444

4545
let to_yojson x = `String (match x with
4646
| AssertionFailure -> "Assertion failure"
@@ -102,12 +102,7 @@ module Check = struct
102102
(Format.pp_print_option CilType.Location.pp) check.range
103103
end
104104

105-
module CheckMap = Hashtbl.Make (struct
106-
type t = Check.t
107-
let equal = Check.equal
108-
let hash = Check.hash
109-
end)
110-
105+
module CheckMap = Hashtbl.Make (Check)
111106

112107
module CategoryLocationMap = Hashtbl.Make (struct
113108
type t = Category.t * CilType.Location.t [@@deriving hash, eq]

0 commit comments

Comments
 (0)