Skip to content

Commit

Permalink
Merge pull request #7 from huitseeker/master
Browse files Browse the repository at this point in the history
Add pass-through for i128/u128 deserialization
  • Loading branch information
dtolnay authored Jun 4, 2020
2 parents a7f6c92 + 81c185f commit 7e69f17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ where
self.de.deserialize_u64(Visitor::new(visitor, param))
}

fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value, D::Error>
where
V: de::Visitor<'de>,
{
let param = Param::new(self.red_zone, self.stack_size);
self.de.deserialize_u128(Visitor::new(visitor, param))
}

fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, D::Error>
where
V: de::Visitor<'de>,
Expand Down Expand Up @@ -113,6 +121,14 @@ where
self.de.deserialize_i64(Visitor::new(visitor, param))
}

fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value, D::Error>
where
V: de::Visitor<'de>,
{
let param = Param::new(self.red_zone, self.stack_size);
self.de.deserialize_i128(Visitor::new(visitor, param))
}

fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, D::Error>
where
V: de::Visitor<'de>,
Expand Down

0 comments on commit 7e69f17

Please sign in to comment.