From c4f91c2895769bcbc8695b53f7225fd5d40bffea Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sun, 14 Apr 2024 08:12:07 -0700 Subject: [PATCH] cargo fmt --all --- src/read.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/read.rs b/src/read.rs index 02e25e45..698f0149 100644 --- a/src/read.rs +++ b/src/read.rs @@ -233,13 +233,14 @@ pub(crate) fn find_content<'a>( let file_name_length = reader.read_u16::()? as u64; let extra_field_length = reader.read_u16::()? as u64; let magic_and_header = 4 + 22 + 2 + 2; - let data_start = data.header_start + magic_and_header + file_name_length + extra_field_length; + let data_start = + data.header_start + magic_and_header + file_name_length + extra_field_length; data.data_start.get_or_init(|| data_start); data_start } - Some(start) => *start + Some(start) => *start, }; - + reader.seek(io::SeekFrom::Start(data_start))?; Ok((reader as &mut dyn Read).take(data.compressed_size)) }