diff --git a/src/read.rs b/src/read.rs index d05f61b1..10b9eaaf 100644 --- a/src/read.rs +++ b/src/read.rs @@ -343,7 +343,8 @@ impl ZipArchive { )); } /* This is where the whole file starts. */ - let initial_offset = files.first().unwrap().1.header_start; + let (_, first_header) = files.first().unwrap(); + let initial_offset = first_header.header_start; let shared = Arc::new(zip_archive::Shared { files, offset: initial_offset,