From 53b0c87687fc6dd2f8bca5c4277a41e3e281025d Mon Sep 17 00:00:00 2001 From: Jacob Brown Date: Mon, 24 Apr 2017 10:50:23 -0500 Subject: make compiler recommended changes --- src/ser/mod.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/ser/mod.rs') diff --git a/src/ser/mod.rs b/src/ser/mod.rs index 8b3e41c..df35995 100644 --- a/src/ser/mod.rs +++ b/src/ser/mod.rs @@ -244,7 +244,7 @@ impl<'output, Target> ser::Serializer for Serializer<'output, Target> /// Returns an error. fn serialize_unit_variant(self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str) -> Result { Err(Error::top_level()) @@ -263,7 +263,7 @@ impl<'output, Target> ser::Serializer for Serializer<'output, Target> fn serialize_newtype_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _value: &T) -> Result { @@ -290,12 +290,6 @@ impl<'output, Target> ser::Serializer for Serializer<'output, Target> Err(Error::top_level()) } - /// Serializes a sequence, given length is ignored. - fn serialize_seq_fixed_size(self, - _len: usize) - -> Result { - Err(Error::top_level()) - } /// Returns an error. fn serialize_tuple(self, @@ -316,7 +310,7 @@ impl<'output, Target> ser::Serializer for Serializer<'output, Target> fn serialize_tuple_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _len: usize) -> Result { @@ -345,7 +339,7 @@ impl<'output, Target> ser::Serializer for Serializer<'output, Target> fn serialize_struct_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _len: usize) -> Result { -- cgit v1.2.3