style: cargo fmt --all

This commit is contained in:
Chris Hennick 2024-05-24 14:26:12 -07:00
parent 0636bd7411
commit 294564c1a8
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -1813,7 +1813,8 @@ fn write_central_directory_header<T: Write>(writer: &mut T, file: &ZipFileData)
writer.write_u32_le(spec::CENTRAL_DIRECTORY_HEADER_SIGNATURE)?; writer.write_u32_le(spec::CENTRAL_DIRECTORY_HEADER_SIGNATURE)?;
let version_needed = file.version_needed(); let version_needed = file.version_needed();
// version made by // version made by
let version_made_by = (file.system as u16) << 8 | (file.version_made_by as u16).max(version_needed); let version_made_by =
(file.system as u16) << 8 | (file.version_made_by as u16).max(version_needed);
writer.write_u16_le(version_made_by)?; writer.write_u16_le(version_made_by)?;
// version needed to extract // version needed to extract
writer.write_u16_le(version_needed)?; writer.write_u16_le(version_needed)?;