Terminal styling and layout widgets for OCaml (tables, trees, panels, colors)
1
fork

Configure Feed

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

wal, block, sse, zephyr: remove [mutable] from never-reassigned fields

Warning 69 (unused-field, mutable-never-assigned). Four independent
record fields were flagged as mutable but the code only mutates their
referents in place, never rebinds the record slot itself:

- ocaml-wal/lib/wal.ml: [t.file] (the Eio file resource; methods call
Eio.File.pwrite_all etc., the slot is set once at open time).
- ocaml-block/lib/block.ml: [Memory.state.data] (the backing bytes,
written via Bytes.blit_string; [Bytes.t] is already mutable).
- ocaml-sse/lib/sse.ml: [Parser.t.data_buf] (a Buffer.t, written via
Buffer.add_*; the slot never changes).
- ocaml-zephyr/lib/zephyr.ml: drop [mode : Read | Write] entirely —
set at open-time, read nowhere. The open_read / open_write
constructors already distinguish the two call shapes, so mode
tracking was redundant.

+4 -1
+1 -1
README.md
··· 25 25 ╭──────────┬────────┬─────────┬──────────┬─────────┬───────────╮ 26 26 │ Target │ Inst. │ Execs │ Paths │ Crashes │ Exec/s │ 27 27 ├──────────┼────────┼─────────┼──────────┼─────────┼───────────┤ 28 - │ cbort │ 3 │ 1.2M │ 847 │ 0 │ 4,521 │ 28 + │ cbor │ 3 │ 1.2M │ 847 │ 0 │ 4,521 │ 29 29 │ yamlrw │ 3 │ 890K │ 1,203 │ 2 │ 3,102 │ 30 30 │ jwt │ 2 │ 2.1M │ 412 │ 0 │ 6,847 │ 31 31 ╰──────────┴────────┴─────────┴──────────┴─────────┴───────────╯
+3
dune
··· 1 + (env 2 + (dev 3 + (flags :standard %{dune-warnings})))