diff --git a/src/compression.rs b/src/compression.rs index 295de6d4..29dbb64c 100644 --- a/src/compression.rs +++ b/src/compression.rs @@ -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; diff --git a/src/read.rs b/src/read.rs index 5b6882cf..ecd265d4 100644 --- a/src/read.rs +++ b/src/read.rs @@ -83,7 +83,7 @@ impl ZipArchive 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());