Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,13 @@ impl ZipFileData {
let permissions = options.permissions.unwrap_or(0o100644);
let file_name: Box<str> = name.to_string().into_boxed_str();
let file_name_raw: Box<[u8]> = file_name.bytes().collect();
let system = if cfg!(windows) {
System::Dos
} else {
System::Unix
};
let mut local_block = ZipFileData {
system: System::Unix,
system: system,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify:

Suggested change
system: system,
system,

version_made_by: DEFAULT_VERSION,
flags: 0,
encrypted: options.encrypt_with.is_some() || {
Expand Down
Loading