Skip to content

Commit

Permalink
style: cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed May 25, 2024
1 parent e6b2290 commit 699d10d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ impl ZipFileData {
extra_data_start,
aes_extra_data_start,
};
local_block.version_made_by = local_block.version_made_by.max(local_block.version_needed() as u8);
local_block.version_made_by = local_block
.version_made_by
.max(local_block.version_needed() as u8);
local_block
}

Expand Down Expand Up @@ -772,7 +774,8 @@ impl ZipFileData {
.unwrap_or_else(DateTime::default_for_write);
ZipCentralEntryBlock {
magic: ZipCentralEntryBlock::MAGIC,
version_made_by: (self.system as u16) << 8 | (self.version_made_by as u16).max(self.version_needed()),
version_made_by: (self.system as u16) << 8
| (self.version_made_by as u16).max(self.version_needed()),
version_to_extract: self.version_needed(),
flags: self.flags(),
compression_method: self.compression_method.serialize_to_u16(),
Expand Down

0 comments on commit 699d10d

Please sign in to comment.