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 committed 2016-02-12 21:22:42 -08:00
1 parent 32163cd53b
commit 064241f03c
2 files changed
+2 -2

No files matched your search

+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
/// struct key.
#[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,
{
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();