style: Fix more conditionally-unused imports

This commit is contained in:
Chris Hennick 2024-05-07 22:09:30 -07:00
parent d5b4c6186d
commit 0c9be885cb
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -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)?;