Remove unnecessary mut

This commit is contained in:
Mohd Tarmizi 2018-04-22 13:12:35 +08:00
parent d9ab93c1c5
commit 1dd769db40
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ fn read_pairs<R: Read>(r: &mut R) -> io::Result<Vec<(String, String)>> {
}
}
fn write_len<W: Write>(mut w: &mut W, n: u32) -> io::Result<()> {
fn write_len<W: Write>(w: &mut W, n: u32) -> io::Result<()> {
if n < 0x80 {
try!(w.write_all(&[n as u8]));
} else {