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/part.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/ser/part.rs') diff --git a/src/ser/part.rs b/src/ser/part.rs index 949af61..ad2d9dd 100644 --- a/src/ser/part.rs +++ b/src/ser/part.rs @@ -122,7 +122,7 @@ impl> ser::Serializer for PartSerializer { fn serialize_unit_variant(self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, variant: &'static str) -> Result { self.sink.serialize_static_str(variant.into()) @@ -139,7 +139,7 @@ impl> ser::Serializer for PartSerializer { fn serialize_newtype_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _value: &T) -> Result { @@ -162,13 +162,6 @@ impl> ser::Serializer for PartSerializer { Ok(self.sink) } - - fn serialize_seq_fixed_size(self, - _len: usize) - -> Result { - Err(self.sink.unsupported()) - } - fn serialize_tuple(self, _len: usize) -> Result { @@ -185,7 +178,7 @@ impl> ser::Serializer for PartSerializer { fn serialize_tuple_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _len: usize) -> Result { @@ -210,7 +203,7 @@ impl> ser::Serializer for PartSerializer { fn serialize_struct_variant (self, _name: &'static str, - _variant_index: usize, + _variant_index: u32, _variant: &'static str, _len: usize) -> Result { -- cgit v1.2.3