Skip to content

Commit

Permalink
Remove unused mut clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 12, 2017
1 parent 28b656b commit 3ee4ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ impl<W: Write> EncoderWriter<W> {
(amt >> 8) as u8,
(amt >> 16) as u8,
(amt >> 24) as u8];
let mut inner = self.inner.get_mut();
let inner = self.inner.get_mut();
let n = try!(inner.write(&buf[self.crc_bytes_written..]));
self.crc_bytes_written += n;
}
Expand Down Expand Up @@ -647,7 +647,7 @@ fn copy(into: &mut [u8], from: &[u8], pos: &mut usize) -> usize {
}

impl<R: Read> Read for EncoderReader<R> {
fn read(&mut self, mut into: &mut [u8]) -> io::Result<usize> {
fn read(&mut self, into: &mut [u8]) -> io::Result<usize> {
self.inner.read(into)
}
}
Expand Down

0 comments on commit 3ee4ce4

Please sign in to comment.