Rename deserialize_struct_field to deserialize_identifier

Because it applies to both struct fields and discriminants of an enum.
This commit is contained in:
David Tolnay
2017-04-09 13:35:20 -07:00
parent 528ec3cdd8
commit a38b24136b
7 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
forward_to_deserialize! {
bool u8 u16 u32 u64 i8 i16 i32 i64 f32 f64 char str string unit
seq bytes byte_buf map struct_field ignored_any
seq bytes byte_buf map identifier ignored_any
}
fn deserialize<V>(self, visitor: V) -> Result<V::Value, Error>
@@ -645,6 +645,6 @@ impl<'de> de::Deserializer<'de> for BytesDeserializer {
forward_to_deserialize! {
bool u8 u16 u32 u64 i8 i16 i32 i64 f32 f64 char str string unit option
seq seq_fixed_size bytes map unit_struct newtype_struct tuple_struct
struct struct_field tuple enum ignored_any byte_buf
struct identifier tuple enum ignored_any byte_buf
}
}