mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 19:04:07 +00:00
use clippy suggestions
This commit is contained in:
parent
aae65c12cf
commit
7004e1c203
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue