Address review comments.
This commit is contained in:
parent
416399dc10
commit
37fbd91eb5
5 changed files with 9 additions and 11 deletions
|
@ -2296,7 +2296,6 @@ impl crate::Decoder for Decoder {
|
|||
for c in s.iter_mut() {
|
||||
*c = self.read_u8();
|
||||
}
|
||||
()
|
||||
}
|
||||
|
||||
fn read_enum<T, F>(&mut self, f: F) -> T
|
||||
|
|
|
@ -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]);
|
||||
()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue