HomeKit Accessory Protocol (HAP) for OCaml
1
fork

Configure Feed

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

fix(lint): resolve E205 and E215 in hostname, json-logs, jsonwt, ltp, matter, hap

Replace Printf/Format with Fmt. Use Fmt.failwith instead of failwith(Fmt.str).

+2 -2
+1 -1
fuzz/dune
··· 18 18 (alias fuzz) 19 19 (deps fuzz_hap.exe) 20 20 (action 21 - (echo "AFL fuzzer built: %{exe:fuzz_hap.exe}\n"))) 21 + (run %{exe:fuzz_hap.exe})))
+1 -1
lib/hap.ml
··· 45 45 let get_exn typ tlv = 46 46 match get typ tlv with 47 47 | Some v -> v 48 - | None -> failwith (Fmt.str "TLV type %d not found" typ) 48 + | None -> Fmt.failwith "TLV type %d not found" typ 49 49 50 50 (* Encode TLV to bytes - values > 255 bytes are split *) 51 51 let encode tlv =