From b0a2cbbe52a202d5de3811740bab6b3c2276470e Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 9 May 2024 14:17:05 -0700 Subject: [PATCH] Fix build errors again --- src/write.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/write.rs b/src/write.rs index e6737f0c..87691b34 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1761,9 +1761,8 @@ fn write_local_file_header(writer: &mut T, file: &ZipFileData) -> ZipR } match extra_field_length.try_into::() { Ok(length_u16) => writer.write_u16_le(length_u16)?, - Err(_) => return ZipError::InvalidArchive("Extra field is too long"), + Err(_) => return Err(ZipError::InvalidArchive("Extra field is too long")), } - writer.write_u16_le(extra_field_length.try_into().map_err(|_| ZipError))?; // file name writer.write_all(&file.file_name_raw)?; // zip64 extra field