From fe663b9ee6001124a3df1a1d9209e4b8dd12a89a Mon Sep 17 00:00:00 2001 From: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Wed, 22 May 2024 13:06:56 -0400 Subject: [PATCH] tiny fix --- src/read.rs | 1 + src/types.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 7879c433..3889f0fc 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1142,6 +1142,7 @@ fn parse_extra_field(file: &mut ZipFileData) -> ZipResult<()> { }; let mut reader = io::Cursor::new(extra_field.as_ref()); + /* TODO: codify this structure into Zip64ExtraFieldBlock fields! */ while (reader.position() as usize) < extra_field.len() { let kind = reader.read_u16_le()?; let len = reader.read_u16_le()?; diff --git a/src/types.rs b/src/types.rs index e844224d..d2195bd5 100644 --- a/src/types.rs +++ b/src/types.rs @@ -849,7 +849,7 @@ impl ZipFileData { #[derive(Copy, Clone, Debug)] #[repr(packed)] pub(crate) struct ZipCentralEntryBlock { - pub magic: spec::Magic, + magic: spec::Magic, pub version_made_by: u16, pub version_to_extract: u16, pub flags: u16,