Rename de::VariantVisitor::visit_{map,seq} to visit_{struct,tuple}

This commit is contained in:
Erick Tryzelaar
2015-07-29 12:24:16 -07:00
parent 7585ce9ed4
commit 351b7039a8
6 changed files with 36 additions and 32 deletions
+6 -6
View File
@@ -648,17 +648,17 @@ impl<Iter> de::VariantVisitor for Deserializer<Iter>
de::Deserialize::deserialize(self)
}
fn visit_seq<V>(&mut self,
_len: usize,
visitor: V) -> Result<V::Value, Error>
fn visit_tuple<V>(&mut self,
_len: usize,
visitor: V) -> Result<V::Value, Error>
where V: de::Visitor,
{
de::Deserializer::visit(self, visitor)
}
fn visit_map<V>(&mut self,
_fields: &'static [&'static str],
visitor: V) -> Result<V::Value, Error>
fn visit_struct<V>(&mut self,
_fields: &'static [&'static str],
visitor: V) -> Result<V::Value, Error>
where V: de::Visitor,
{
de::Deserializer::visit(self, visitor)