Remove unused parentheses

This commit is contained in:
Mathijs van de Nes 2016-02-02 21:17:42 +01:00
parent 6ef7a4d545
commit 7db32c9165
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ mod test {
#[test]
fn from_eq_to() {
for v in (0..::std::u16::MAX as u32 + 1)
for v in 0..(::std::u16::MAX as u32 + 1)
{
let from = CompressionMethod::from_u16(v as u16);
let to = from.to_u16() as u32;

View file

@ -83,7 +83,7 @@ impl<R: Read+io::Seek> ZipArchive<R>
let mut names_map = HashMap::new();
try!(reader.seek(io::SeekFrom::Start(directory_start)));
for _ in (0 .. number_of_files)
for _ in 0 .. number_of_files
{
let file = try!(central_header_to_zip_file(&mut reader));
names_map.insert(file.file_name.clone(), files.len());