use clippy suggestions

This commit is contained in:
spuds 2023-08-27 17:54:02 +01:00
parent aae65c12cf
commit 7004e1c203
No known key found for this signature in database
GPG key ID: 0B6CA6068E827C8F

View file

@ -316,6 +316,7 @@ impl Entry {
) -> Result<(), super::Error> { ) -> Result<(), super::Error> {
reader.seek(io::SeekFrom::Start(self.offset))?; reader.seek(io::SeekFrom::Start(self.offset))?;
Entry::read(reader, version)?; Entry::read(reader, version)?;
#[cfg(any(feature = "compression", feature = "oodle"))]
let data_offset = reader.stream_position()?; let data_offset = reader.stream_position()?;
#[allow(unused_mut)] #[allow(unused_mut)]
let mut data = reader.read_len(match self.is_encrypted() { 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 { let ranges = match &self.blocks {
Some(blocks) => blocks Some(blocks) => blocks
.iter() .iter()