From 6961db2024aa96bc1ba2d8f38c5dc1ba49fdabd9 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 30 Jan 2020 15:22:53 +1100 Subject: [PATCH] Remove unused `read_uleb128` parameter. --- src/libserialize/opaque.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libserialize/opaque.rs b/src/libserialize/opaque.rs index e808d9819986f..39f3abb75271b 100644 --- a/src/libserialize/opaque.rs +++ b/src/libserialize/opaque.rs @@ -192,7 +192,7 @@ impl<'a> Decoder<'a> { } macro_rules! read_uleb128 { - ($dec:expr, $t:ty, $fun:ident) => {{ + ($dec:expr, $fun:ident) => {{ let (value, bytes_read) = leb128::$fun(&$dec.data[$dec.position..]); $dec.position += bytes_read; Ok(value) @@ -217,22 +217,22 @@ impl<'a> serialize::Decoder for Decoder<'a> { #[inline] fn read_u128(&mut self) -> Result { - read_uleb128!(self, u128, read_u128_leb128) + read_uleb128!(self, read_u128_leb128) } #[inline] fn read_u64(&mut self) -> Result { - read_uleb128!(self, u64, read_u64_leb128) + read_uleb128!(self, read_u64_leb128) } #[inline] fn read_u32(&mut self) -> Result { - read_uleb128!(self, u32, read_u32_leb128) + read_uleb128!(self, read_u32_leb128) } #[inline] fn read_u16(&mut self) -> Result { - read_uleb128!(self, u16, read_u16_leb128) + read_uleb128!(self, read_u16_leb128) } #[inline] @@ -244,7 +244,7 @@ impl<'a> serialize::Decoder for Decoder<'a> { #[inline] fn read_usize(&mut self) -> Result { - read_uleb128!(self, usize, read_usize_leb128) + read_uleb128!(self, read_usize_leb128) } #[inline]