Skip to content

Commit

Permalink
Fix a clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsteele committed Mar 26, 2024
1 parent 03d664b commit fae9a49
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,7 @@ impl<R: Read + Seek> Archive<R> {
self.reader.seek(SeekFrom::Start(offset))?;
let header = &self.entry_headers[index].header;
let size = header.size();
if size % 2 != 0 {
self.padding = true;
} else {
self.padding = false;
}
self.padding = size % 2 != 0;
self.next_entry_index = index + 1;
Ok(Entry {
header,
Expand Down

0 comments on commit fae9a49

Please sign in to comment.