From 079693af2293e5c7c4f9f34f79725cecd17cc611 Mon Sep 17 00:00:00 2001 From: spuds <71292624+bananaturtlesandwich@users.noreply.github.com> Date: Sun, 27 Aug 2023 17:16:06 +0100 Subject: [PATCH] Pak::read should accept reference too whoops --- repak/src/pak.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repak/src/pak.rs b/repak/src/pak.rs index deaaec2..1785f81 100644 --- a/repak/src/pak.rs +++ b/repak/src/pak.rs @@ -226,13 +226,13 @@ impl PakWriter { impl Pak { fn read( - mut reader: R, + reader: &mut R, version: super::Version, key: Option<&aes::Aes256>, ) -> Result { // read footer to get index, encryption & compression info reader.seek(io::SeekFrom::End(-version.size()))?; - let footer = super::footer::Footer::read(&mut reader, version)?; + let footer = super::footer::Footer::read(reader, version)?; // read index to get all the entry info reader.seek(io::SeekFrom::Start(footer.index_offset))?; let mut index = reader.read_len(footer.index_size as usize)?;