Fix two warnings

This commit is contained in:
Mathijs van de Nes 2014-09-18 11:21:10 +02:00
parent b43788cf69
commit e4a3bc4437
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ impl<T: Reader+Seek> ZipReader<T>
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)));
}

View file

@ -143,7 +143,7 @@ impl<W: Writer+Seek> ZipWriter<W>
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,