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 064241f03c
2 changed files with 2 additions and 2 deletions

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)

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();