Skip to content

Commit

Permalink
visit_bigint when deserialize_tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 18, 2023
1 parent c03bec1 commit 92bb9d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion itf/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ impl<'de> Deserializer<'de> for Value {
where
V: Visitor<'de>,
{
self.deserialize_seq(visitor)
match self {
Value::BigInt(v) => visit_bigint(v, visitor),
_ => self.deserialize_seq(visitor),
}
}

fn deserialize_tuple_struct<V>(
Expand Down

0 comments on commit 92bb9d3

Please sign in to comment.