From 082ee7090212e8a377b2145fe82712cc41431fee Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 28 Apr 2017 13:00:37 +0900 Subject: Address comment and make test pass --- src/ser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ser.rs') diff --git a/src/ser.rs b/src/ser.rs index 2365b38..4896f8a 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -421,9 +421,9 @@ impl<'a, 'b> ser::Serializer for &'b mut Serializer<'a> { fn serialize_unit_variant(self, _name: &'static str, _variant_index: u32, - _variant: &'static str) + variant: &'static str) -> Result<(), Self::Error> { - self.serialize_str(_variant) + self.serialize_str(variant) } fn serialize_newtype_struct(self, _name: &'static str, value: &T) -- cgit v1.2.3