aboutsummaryrefslogtreecommitdiff
path: root/src/ser.rs
diff options
context:
space:
mode:
authorVincent Prouillet <vincent@wearewizards.io>2017-04-28 13:00:37 +0900
committerVincent Prouillet <vincent@wearewizards.io>2017-04-28 13:00:37 +0900
commit082ee7090212e8a377b2145fe82712cc41431fee (patch)
treecbcc059289278b7bf2b0d89ef3d3b9f7bdcde1ac /src/ser.rs
parent45acd4f5b592536f013b94084faca41b42e48c13 (diff)
downloadmilf-rs-082ee7090212e8a377b2145fe82712cc41431fee.tar.gz
milf-rs-082ee7090212e8a377b2145fe82712cc41431fee.zip
Address comment and make test pass
Diffstat (limited to 'src/ser.rs')
-rw-r--r--src/ser.rs4
1 files changed, 2 insertions, 2 deletions
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<T: ?Sized>(self, _name: &'static str, value: &T)