diff --git a/Cargo.toml b/Cargo.toml index 47f5f0b..60b725d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "fast_log" -version = "1.7.5" +version = "1.7.6" description = "Rust async log High-performance asynchronous logging" readme = "README.md" authors = ["ce "] @@ -29,7 +29,7 @@ crossbeam = "0.8" crossbeam-channel = "0.5" dark-std = "0.2" parking_lot = "0.12" -zip = { version = "0.6", optional = true } +zip = { version = "2.2.0", optional = true } lz4_flex = { version = "0.11", optional = true } flate2 = { version = "1.0", optional = true } diff --git a/src/plugin/packer.rs b/src/plugin/packer.rs index e95e98f..5faad33 100644 --- a/src/plugin/packer.rs +++ b/src/plugin/packer.rs @@ -43,7 +43,7 @@ impl Packer for ZipPacker { .map_err(|e| LogError::from(format!("[fast_log] create(&{}) fail:{}", zip_path, e)))?; //write zip bytes data let mut zip = zip::ZipWriter::new(zip_file); - zip.start_file(log_name, FileOptions::default()) + zip.start_file::(log_name, FileOptions::default()) .map_err(|e| LogError::from(e.to_string()))?; //buf reader std::io::copy(&mut log_file, &mut zip).map_err(|e| LogError::from(e.to_string()))?;