Skip to content

Commit dec0e60

Browse files
committed
fix: remove wrong decode_array function use
1 parent fb12cc0 commit dec0e60

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

decode.v

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn (mut d Decoder) decode[T](data []u8, mut val T) ! {
4747
} $else $if T is []u8 {
4848
d.decode_binary[T](mut val) or { return error('error decoding binary: ${err}') }
4949
} $else $if T is $array {
50-
d.decode_array[T](mut val) or { return error('error decoding array: ${err}') }
50+
d.decode_array(mut val) or { return error('error decoding array: ${err}') }
5151
} $else $if T is $map {
5252
d.decode_map[T](mut val) or { return error('error decoding map: ${err}') }
5353
} $else $if T is time.Time {
@@ -147,12 +147,7 @@ pub fn (mut d Decoder) decode_binary[T](mut val T) ! {
147147
}
148148
}
149149

150-
pub fn (mut d Decoder) decode_array[T](mut val T) ! {
151-
decode_array(mut val, mut d)!
152-
}
153-
154-
@[deprecated: 'waiting #20033 be solved']
155-
fn decode_array[T](mut val []T, mut d Decoder) ! {
150+
pub fn (mut d Decoder) decode_array[T](mut val []T) ! {
156151
data := d.buffer
157152
match d.bd {
158153
mp_array_16, mp_array_32, mp_fix_array_min...mp_fix_array_max {

0 commit comments

Comments
 (0)