diff options
| author | Matias Goldfeld <[email protected]> | 2021-01-29 13:42:34 -0500 |
|---|---|---|
| committer | Matias Goldfeld <[email protected]> | 2021-01-29 13:42:34 -0500 |
| commit | 2f37138dedb34651ddb2efd687a8d860b0138778 (patch) | |
| tree | b0d89ca5795724b3bb804f2d65ee609217567ecd /lib/models/permissions.ml | |
| parent | Revert "More 32 bit fixes" (diff) | |
| download | disml-2f37138dedb34651ddb2efd687a8d860b0138778.tar.xz disml-2f37138dedb34651ddb2efd687a8d860b0138778.zip | |
Reverted attempts to add 32-bit compatibility
Diffstat (limited to 'lib/models/permissions.ml')
| -rw-r--r-- | lib/models/permissions.ml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/models/permissions.ml b/lib/models/permissions.ml index 7a0892b..1380594 100644 --- a/lib/models/permissions.ml +++ b/lib/models/permissions.ml @@ -39,13 +39,9 @@ end) let sexp_of_t = Core.Int.sexp_of_t let t_of_sexp = Core.Int.t_of_sexp -let of_yojson_exn j = create @@ Yojson.Safe.Util.to_int j +let t_of_yojson j = create @@ Yojson.Safe.Util.to_int j -let of_yojson j = - try Ok (of_yojson_exn j) - with Yojson.Safe.Util.Type_error (why,_) -> Error why - -let to_yojson t : Yojson.Safe.t = `Int t +let yojson_of_t t : Yojson.Safe.t = `Int t let of_seq seq = List.of_seq seq |> of_list |