diff --git a/src/read.rs b/src/read.rs index 6bb5addc..a47586ea 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1257,7 +1257,7 @@ mod test { "../tests/data/invalid_cde_number_of_files_allocation_smaller_offset.zip" )); let reader = ZipArchive::new(io::Cursor::new(v)); - assert!(reader.is_err() || reader.unwrap().file_names().next().is_none()); + assert!(reader.is_err() || reader.unwrap().is_empty()); } /// test case to ensure we don't preemptively over allocate based on the