aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Branch.ml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-08-02 23:37:51 -0300
committerEstevan Castilho <tevo@riajuu.net>2026-08-23 03:06:53 +0000
commit8d59f43f445164e8cc8bd3fe1a23bd04e807a6b3 (patch)
tree6a673397f921070d8a86d026380548d5e251a29f /lib/concepts/Branch.ml
parentb762cb41da4d822416c3ab66940622882745fc0a (diff)
downloadRNT-8d59f43f445164e8cc8bd3fe1a23bd04e807a6b3.tar.gz
RNT-8d59f43f445164e8cc8bd3fe1a23bd04e807a6b3.zip
format
Diffstat (limited to 'lib/concepts/Branch.ml')
-rw-r--r--lib/concepts/Branch.ml13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/concepts/Branch.ml b/lib/concepts/Branch.ml
index cd4213b..57c46b3 100644
--- a/lib/concepts/Branch.ml
+++ b/lib/concepts/Branch.ml
@@ -1,8 +1,5 @@
type address = Hash.hash
-
-type t =
- { name: string;
- target: address }
+type t = {name: string; target: address}
module Field = struct
let name = "name"
@@ -22,7 +19,6 @@ module Error = struct
end
let make ~name ~target = {name; target}
-
let name branch = branch.name
let target branch = branch.target
@@ -31,13 +27,10 @@ module Body = struct
let tag = 'b'
let malformed = Error.malformed_branch
-
- let equal left right =
- left.name = right.name && Hash.hash_equals left.target right.target
+ let equal left right = left.name = right.name && Hash.hash_equals left.target right.target
let fields branch =
- [ Field.name, Object.Field.string branch.name;
- Field.target, Object.Field.address branch.target ]
+ [Field.name, Object.Field.string branch.name; Field.target, Object.Field.address branch.target]
let of_fields data =
let open Utilities.Result in