diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index ac20dad6..85d7b336 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -160,8 +160,8 @@ pub trait Serializer { #[inline] fn visit_tuple_struct(&mut self, - _name: &'static str, - visitor: V) -> Result<(), Self::Error> + _name: &'static str, + visitor: V) -> Result<(), Self::Error> where V: SeqVisitor, { self.visit_tuple(visitor) @@ -201,8 +201,8 @@ pub trait Serializer { #[inline] fn visit_struct(&mut self, - _name: &'static str, - visitor: V) -> Result<(), Self::Error> + _name: &'static str, + visitor: V) -> Result<(), Self::Error> where V: MapVisitor, { self.visit_map(visitor)