Fix two warnings
This commit is contained in:
parent
b43788cf69
commit
e4a3bc4437
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ impl<T: Reader+Seek> ZipReader<T>
|
||||||
let mut files = Vec::with_capacity(number_of_files);
|
let mut files = Vec::with_capacity(number_of_files);
|
||||||
|
|
||||||
try!(reader.seek(directory_start, io::SeekSet));
|
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)));
|
files.push(try!(reader_spec::central_header_to_zip_file(&mut reader)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,7 +143,7 @@ impl<W: Writer+Seek> ZipWriter<W>
|
||||||
try!(self.inner.switch_to(compression::Stored));
|
try!(self.inner.switch_to(compression::Stored));
|
||||||
let writer = self.inner.get_plain();
|
let writer = self.inner.get_plain();
|
||||||
|
|
||||||
let file = match self.files.mut_last()
|
let file = match self.files.last_mut()
|
||||||
{
|
{
|
||||||
None => return Ok(()),
|
None => return Ok(()),
|
||||||
Some(f) => f,
|
Some(f) => f,
|
||||||
|
|
Loading…
Add table
Reference in a new issue