mirror of https://github.com/mohtar/rust-fastcgi
Remove unnecessary mut
This commit is contained in:
parent
d9ab93c1c5
commit
1dd769db40
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue