From e4a3bc4437e9598475a6fc0893fd6bf0b4eb8f14 Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Thu, 18 Sep 2014 11:21:10 +0200 Subject: [PATCH] Fix two warnings --- src/reader.rs | 2 +- src/writer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,