diff --git a/src/reader.rs b/src/reader.rs index 2ba605b4..f418ea1b 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -63,7 +63,7 @@ impl ZipReader let mut files = Vec::with_capacity(number_of_files); try!(reader.seek(directory_start, io::SeekSet)); - for i in range(0, number_of_files) + for _ in range(0, number_of_files) { files.push(try!(reader_spec::central_header_to_zip_file(&mut reader))); } diff --git a/src/writer.rs b/src/writer.rs index 773d458c..3fdaed26 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -143,7 +143,7 @@ impl ZipWriter try!(self.inner.switch_to(compression::Stored)); let writer = self.inner.get_plain(); - let file = match self.files.mut_last() + let file = match self.files.last_mut() { None => return Ok(()), Some(f) => f,