fix(serde): Rename visit_struct_key to visit_struct_field

This is more consistent with the rest of the serde naming patterns.
This commit is contained in:
Erick Tryzelaar
2016-02-12 21:22:42 -08:00
parent 32163cd53b
commit b9b14280fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ pub trait Deserializer {
/// This allows deserializers to choose between &str, usize, or &[u8] to properly deserialize a /// This allows deserializers to choose between &str, usize, or &[u8] to properly deserialize a
/// struct key. /// struct key.
#[inline] #[inline]
fn visit_struct_key<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> fn visit_struct_field<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor, where V: Visitor,
{ {
self.visit(visitor) self.visit(visitor)
+1 -1
View File
@@ -917,7 +917,7 @@ fn deserialize_field_visitor(
} }
} }
deserializer.visit_struct_key(__FieldVisitor::<D>{ phantom: PhantomData }) deserializer.visit_struct_field(__FieldVisitor::<D>{ phantom: PhantomData })
} }
} }
).unwrap(); ).unwrap();