From cfa9788e7c881251590cb26d446c5eee80c6563f Mon Sep 17 00:00:00 2001 From: swrup Date: Fri, 17 Oct 2025 16:04:04 +0200 Subject: [PATCH] --- src/util.ml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/util.ml b/src/util.ml index d33ed772..36619bb6 100644 --- a/src/util.ml +++ b/src/util.ml @@ -24,10 +24,7 @@ let ptime_add_span_exn p span = (* -- *** -- *) (* TODO bin - - no [Bin.of_string] ? - - what to do with the int ref? - is it for signaling error? *) + - no [Bin.of_string] ? *) let bin_of_string bin s = - let off = ref 0 in - let v = Bin.decode bin s off in + let v = Bin.decode bin s (ref 0) in Ok v