From 7004e1c203a644dcf453750de7a933c00abcd917 Mon Sep 17 00:00:00 2001 From: spuds <71292624+bananaturtlesandwich@users.noreply.github.com> Date: Sun, 27 Aug 2023 17:54:02 +0100 Subject: [PATCH] use clippy suggestions --- repak/src/entry.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repak/src/entry.rs b/repak/src/entry.rs index b198c58..35d6224 100644 --- a/repak/src/entry.rs +++ b/repak/src/entry.rs @@ -316,6 +316,7 @@ impl Entry { ) -> Result<(), super::Error> { reader.seek(io::SeekFrom::Start(self.offset))?; Entry::read(reader, version)?; + #[cfg(any(feature = "compression", feature = "oodle"))] let data_offset = reader.stream_position()?; #[allow(unused_mut)] let mut data = reader.read_len(match self.is_encrypted() { @@ -338,6 +339,7 @@ impl Entry { } } + #[cfg(any(feature = "compression", feature = "oodle"))] let ranges = match &self.blocks { Some(blocks) => blocks .iter()