From acca80a96fc9e4f2a4a1245ce2312599094acd1c Mon Sep 17 00:00:00 2001 From: blackshirt Date: Wed, 10 Sep 2025 02:33:55 +0000 Subject: [PATCH] small warning fix related unused variables --- vlib/x/crypto/ascon/hash.v | 4 ++-- vlib/x/crypto/ascon/xof.v | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/x/crypto/ascon/hash.v b/vlib/x/crypto/ascon/hash.v index 8daa0888e2..f83f5a46f8 100644 --- a/vlib/x/crypto/ascon/hash.v +++ b/vlib/x/crypto/ascon/hash.v @@ -47,7 +47,7 @@ pub fn sum256(msg []u8) []u8 { _ := h.write(msg) or { panic(err) } h.Digest.finish() mut dst := []u8{len: hash256_size} - n := h.Digest.squeeze(mut dst) + _ := h.Digest.squeeze(mut dst) return dst } @@ -125,7 +125,7 @@ pub fn (mut h Hash256) sum(data []u8) []u8 { _ := h0.write(data) or { panic(err) } h0.Digest.finish() mut dst := []u8{len: hash256_size} - n := h0.Digest.squeeze(mut dst) + _ := h0.Digest.squeeze(mut dst) h0.reset() return dst } diff --git a/vlib/x/crypto/ascon/xof.v b/vlib/x/crypto/ascon/xof.v index d905045202..c6d48ce149 100644 --- a/vlib/x/crypto/ascon/xof.v +++ b/vlib/x/crypto/ascon/xof.v @@ -34,7 +34,7 @@ pub fn xof128(msg []u8, size int) ![]u8 { _ := x.write(msg)! x.Digest.finish() mut out := []u8{len: size} - n := x.Digest.squeeze(mut out) + _ := x.Digest.squeeze(mut out) x.reset() return out } @@ -174,7 +174,7 @@ pub fn cxof128(msg []u8, size int, cs []u8) ![]u8 { _ := cx.write(msg)! cx.Digest.finish() mut out := []u8{len: size} - n := cx.Digest.squeeze(mut out) + _ := cx.Digest.squeeze(mut out) cx.reset() return out }