From 5b285d7cbf9679b389fa979cfecf6b135c47809e Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sat, 15 Jun 2024 15:14:42 -0700 Subject: [PATCH] test: Fix some tests that were failing when Zopfli wasn't enabled --- src/write.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/write.rs b/src/write.rs index 3dad38fc..2b0129c0 100644 --- a/src/write.rs +++ b/src/write.rs @@ -2563,7 +2563,7 @@ mod test { central_extra_data: vec![].into(), }, alignment: 2048, - zopfli_buffer_size: None, + ..Default::default() }; writer.add_symlink_from_path(SYMLINK_PATH, "||\0\0\0\0", options)?; writer = ZipWriter::new_append(writer.finish_into_readable()?.into_inner())?; @@ -2868,7 +2868,7 @@ mod test { .into(), }, alignment: 65535, - zopfli_buffer_size: None, + ..Default::default() }; writer.add_directory_from_path("", options)?; let _ = writer.finish_into_readable()?; @@ -2895,7 +2895,7 @@ mod test { .into(), }, alignment: 65535, - zopfli_buffer_size: None, + ..Default::default() }; assert!(writer.add_directory_from_path("", options).is_err()); let _ = writer.finish_into_readable()?;