upstream: https://github.com/mirage/ocaml-mbr
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use Result.Syntax instead of local let* bindings

Replace `let ( let* ) = Result.bind` with `open Result.Syntax` across
multiple packages: x509, tls, requests, ca-certs, cpio, jsonwt, matter,
tar, spake2, crypto, gpt, mbr.

The stdlib Result.Syntax module provides the same let* operator.

+2 -6
+1 -5
lib/mbr.ml
··· 14 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 15 *) 16 16 17 - module Result_syntax = struct 18 - let ( let* ) = Result.bind 19 - end 20 - 21 - open Result_syntax 17 + open Result.Syntax 22 18 23 19 (* Binary reading helpers - little-endian *) 24 20 let get_u8 s off = Char.code (Bytes.get s off)
+1 -1
test/test_mbr.ml
··· 1 - let ( let* ) = Result.bind 1 + open Result.Syntax 2 2 3 3 let get_ok = function 4 4 | Ok x -> x