Skip to content

Commit

Permalink
Add 128-bit deserialization in serde_test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 20, 2018
1 parent 408f1fc commit 1f9db77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions serde_test/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
type Error = Error;

forward_to_deserialize_any! {
bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str string bytes
byte_buf unit seq map identifier ignored_any
bool i8 i16 i32 i64 i128 u8 u16 u32 u64 u128 f32 f64 char str string
bytes byte_buf unit seq map identifier ignored_any
}

fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Error>
Expand Down Expand Up @@ -657,8 +657,8 @@ impl<'de> de::Deserializer<'de> for BytesDeserializer {
}

forward_to_deserialize_any! {
bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str string bytes
byte_buf option unit unit_struct newtype_struct seq tuple tuple_struct
map struct enum identifier ignored_any
bool i8 i16 i32 i64 i128 u8 u16 u32 u64 u128 f32 f64 char str string
bytes byte_buf option unit unit_struct newtype_struct seq tuple
tuple_struct map struct enum identifier ignored_any
}
}

0 comments on commit 1f9db77

Please sign in to comment.