We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa03ab8 + 0e2ae2b commit 705842aCopy full SHA for 705842a
src/read/endian_reader.rs
@@ -469,7 +469,7 @@ where
469
fn read_slice(&mut self, buf: &mut [u8]) -> Result<()> {
470
match self.range.read_slice(buf.len()) {
471
Some(slice) => {
472
- buf.clone_from_slice(slice);
+ buf.copy_from_slice(slice);
473
Ok(())
474
}
475
None => Err(Error::UnexpectedEof(self.offset_id())),
src/read/endian_slice.rs
@@ -305,7 +305,7 @@ where
305
#[inline]
306
307
let slice = self.read_slice(buf.len())?;
308
309
310
311
0 commit comments