From 722fe40a2fa26c2f4982650a12ae5b088a25fe80 Mon Sep 17 00:00:00 2001 From: Kim Shrier Date: Fri, 17 Nov 2023 01:47:41 -0700 Subject: [PATCH] json: replaced deprecated type byte with u8 (#19905) --- vlib/json/json_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/json/json_test.v b/vlib/json/json_test.v index ba436ebd18..30e5ea0ff2 100644 --- a/vlib/json/json_test.v +++ b/vlib/json/json_test.v @@ -486,11 +486,11 @@ fn test_encode_sumtype_defined_ahead() { } struct StByteArray { - ba []byte + ba []u8 } fn test_byte_array() { - assert json.encode(StByteArray{ ba: [byte(1), 2, 3, 4, 5] }) == '{"ba":[1,2,3,4,5]}' + assert json.encode(StByteArray{ ba: [u8(1), 2, 3, 4, 5] }) == '{"ba":[1,2,3,4,5]}' } struct Aa {