From bc4205a1d0fd9bf41b07f865dc59c9bad718ac69 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 14 Apr 2017 14:31:29 -0700 Subject: [PATCH] Use V as the Visitor parameter --- serde/src/de/value.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/serde/src/de/value.rs b/serde/src/de/value.rs index 51a6e670..e260d831 100644 --- a/serde/src/de/value.rs +++ b/serde/src/de/value.rs @@ -693,7 +693,7 @@ where Second: IntoDeserializer<'de, E>, E: de::Error, { - /// Construct a new `MapDeserializer`. + /// Construct a new `MapDeserializer`. pub fn new(iter: I) -> Self { MapDeserializer { iter: iter.fuse(), @@ -741,30 +741,30 @@ where { type Error = E; - fn deserialize_any(mut self, visitor: V_) -> Result + fn deserialize_any(mut self, visitor: V) -> Result where - V_: de::Visitor<'de>, + V: de::Visitor<'de>, { let value = try!(visitor.visit_map(&mut self)); try!(self.end()); Ok(value) } - fn deserialize_seq(mut self, visitor: V_) -> Result + fn deserialize_seq(mut self, visitor: V) -> Result where - V_: de::Visitor<'de>, + V: de::Visitor<'de>, { let value = try!(visitor.visit_seq(&mut self)); try!(self.end()); Ok(value) } - fn deserialize_seq_fixed_size(self, - _len: usize, - visitor: V_) - -> Result + fn deserialize_seq_fixed_size(self, + _len: usize, + visitor: V) + -> Result where - V_: de::Visitor<'de>, + V: de::Visitor<'de>, { self.deserialize_seq(visitor) }