From 37fbd91eb526cc7e246f7c6c97b1deb9e37879ff Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 20 Jan 2022 09:59:30 +1100 Subject: Address review comments. --- compiler/rustc_serialize/src/json.rs | 1 - compiler/rustc_serialize/src/opaque.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/rustc_serialize') diff --git a/compiler/rustc_serialize/src/json.rs b/compiler/rustc_serialize/src/json.rs index c005db12099..044de8e4e24 100644 --- a/compiler/rustc_serialize/src/json.rs +++ b/compiler/rustc_serialize/src/json.rs @@ -2296,7 +2296,6 @@ impl crate::Decoder for Decoder { for c in s.iter_mut() { *c = self.read_u8(); } - () } fn read_enum(&mut self, f: F) -> T diff --git a/compiler/rustc_serialize/src/opaque.rs b/compiler/rustc_serialize/src/opaque.rs index 89ac7834a39..c272c687a7e 100644 --- a/compiler/rustc_serialize/src/opaque.rs +++ b/compiler/rustc_serialize/src/opaque.rs @@ -676,11 +676,10 @@ impl<'a> serialize::Decoder for Decoder<'a> { } #[inline] - fn read_raw_bytes_into(&mut self, s: &mut [u8]) -> () { + fn read_raw_bytes_into(&mut self, s: &mut [u8]) { let start = self.position; self.position += s.len(); s.copy_from_slice(&self.data[start..self.position]); - () } } -- cgit 1.4.1-3-g733a5