Skip to content

Commit

Permalink
fix: remove wrong decode_array function use
Browse files Browse the repository at this point in the history
  • Loading branch information
enghitalo committed Nov 29, 2023
1 parent fb12cc0 commit dec0e60
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions decode.v
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn (mut d Decoder) decode[T](data []u8, mut val T) ! {
} $else $if T is []u8 {
d.decode_binary[T](mut val) or { return error('error decoding binary: ${err}') }
} $else $if T is $array {
d.decode_array[T](mut val) or { return error('error decoding array: ${err}') }
d.decode_array(mut val) or { return error('error decoding array: ${err}') }
} $else $if T is $map {
d.decode_map[T](mut val) or { return error('error decoding map: ${err}') }
} $else $if T is time.Time {
Expand Down Expand Up @@ -147,12 +147,7 @@ pub fn (mut d Decoder) decode_binary[T](mut val T) ! {
}
}

pub fn (mut d Decoder) decode_array[T](mut val T) ! {
decode_array(mut val, mut d)!
}

@[deprecated: 'waiting #20033 be solved']
fn decode_array[T](mut val []T, mut d Decoder) ! {
pub fn (mut d Decoder) decode_array[T](mut val []T) ! {
data := d.buffer
match d.bd {
mp_array_16, mp_array_32, mp_fix_array_min...mp_fix_array_max {
Expand Down

0 comments on commit dec0e60

Please sign in to comment.