From dd6535296d867a4315e2bf3b292ad54e0922ba42 Mon Sep 17 00:00:00 2001 From: Robur Date: Wed, 8 Sep 2021 09:11:54 +0000 Subject: [PATCH] use Cstruct.length instead of deprecated Cstruct.len --- bin/migrations/m20210712c.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/migrations/m20210712c.ml b/bin/migrations/m20210712c.ml index 78029c9..dc15211 100644 --- a/bin/migrations/m20210712c.ml +++ b/bin/migrations/m20210712c.ml @@ -9,7 +9,7 @@ module Asn = struct let decode_strict codec cs = match Asn.decode codec cs with | Ok (a, cs) -> - if Cstruct.len cs = 0 + if Cstruct.length cs = 0 then Ok a else Error "trailing bytes" | Error (`Parse msg) -> Error ("parse error: " ^ msg)