From 0c9be885cbb0e7edefedce4e491c417f6e467f76 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Tue, 7 May 2024 22:09:30 -0700 Subject: [PATCH] style: Fix more conditionally-unused imports --- src/write.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/write.rs b/src/write.rs index f6c809ef..0d239e17 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1969,8 +1969,8 @@ mod test { use crate::result::ZipResult; use crate::types::DateTime; use crate::write::SimpleFileOptions; - use crate::CompressionMethod::{Deflated, Stored}; - use crate::{AesMode, ZipArchive}; + use crate::CompressionMethod::Stored; + use crate::ZipArchive; use std::io; use std::io::{Cursor, Read, Write}; use std::path::PathBuf; @@ -2484,10 +2484,10 @@ mod test { let second_archive = second_writer.finish_into_readable()?.into_inner(); let mut second_writer = ZipWriter::new_append(second_archive)?; let options = SimpleFileOptions::default() - .compression_method(Deflated) + .compression_method(CompressionMethod::Deflated) .large_file(true) .with_alignment(46036) - .with_aes_encryption(AesMode::Aes128, "\0\0"); + .with_aes_encryption(crate::AesMode::Aes128, "\0\0"); second_writer.add_symlink("", "", options)?; let second_archive = second_writer.finish_into_readable()?.into_inner(); let mut second_writer = ZipWriter::new_append(second_archive)?;