Fix another formatting issue

This commit is contained in:
Chris Hennick 2023-04-23 15:19:19 -07:00
parent 911d67a795
commit 06b5ceaef9
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -3,7 +3,7 @@ use bencher::{benchmark_group, benchmark_main};
use std::io::{Cursor, Write};
use bencher::Bencher;
use zip_next::{ZipArchive, ZipWriter};
use zip_next::{CompressionMethod, ZipArchive, ZipWriter};
use zip_next::write::FileOptions;
const FILE_COUNT: usize = 15_000;
@ -12,8 +12,7 @@ const FILE_SIZE: usize = 1024;
fn generate_random_archive(count_files: usize, file_size: usize) -> Vec<u8> {
let data = Vec::new();
let mut writer = ZipWriter::new(Cursor::new(data));
let options = FileOptions::default()
.compression_method(zip_next::CompressionMethod::Stored);
let options = FileOptions::default().compression_method(CompressionMethod::Stored);
let bytes = vec![0u8; file_size];