chore(lib): fix new unused_mut warnings in nightly

This commit is contained in:
Sean McArthur
2017-08-11 15:07:49 -07:00
parent f2db365613
commit 2ea125e609
6 changed files with 9 additions and 9 deletions

View File

@@ -326,7 +326,7 @@ mod tests {
fn read(s: &str) -> u64 {
let mut state = ChunkedState::Size;
let mut rdr = &mut s.as_bytes();
let rdr = &mut s.as_bytes();
let mut size = 0;
loop {
let result = state.step(rdr, &mut size, &mut None);
@@ -341,7 +341,7 @@ mod tests {
fn read_err(s: &str, expected_err: io::ErrorKind) {
let mut state = ChunkedState::Size;
let mut rdr = &mut s.as_bytes();
let rdr = &mut s.as_bytes();
let mut size = 0;
loop {
let result = state.step(rdr, &mut size, &mut None);