style: Fix more conditionally-unused imports
This commit is contained in:
parent
d5b4c6186d
commit
0c9be885cb
1 changed files with 4 additions and 4 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue