From b0fb9fb7edec1a7bd60476d3e140fe8139dc5ff9 Mon Sep 17 00:00:00 2001 From: Subhomoy Haldar Date: Sat, 9 Sep 2023 11:34:47 +0100 Subject: [PATCH] crypto.md5: change the Digest.write return type, from `?int` to `!int` (#19311) Co-authored-by: Subhomoy Haldar --- vlib/crypto/md5/md5.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/crypto/md5/md5.v b/vlib/crypto/md5/md5.v index fe0a19e211..fff3f0d514 100644 --- a/vlib/crypto/md5/md5.v +++ b/vlib/crypto/md5/md5.v @@ -66,7 +66,7 @@ pub fn new() &Digest { } // write writes the contents of `p_` to the internal hash representation. -pub fn (mut d Digest) write(p_ []u8) ?int { +pub fn (mut d Digest) write(p_ []u8) !int { unsafe { mut p := p_ nn := p.len