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)?;