From db69d25828e4a959941378e8ccde4b9700e50450 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Mon, 8 Apr 2024 10:45:22 -0700 Subject: [PATCH] Bug fix --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index dd2666af..cac9e831 100644 --- a/src/types.rs +++ b/src/types.rs @@ -560,7 +560,7 @@ mod test { file_name_raw: file_name.into_bytes(), extra_field: Arc::new(vec![]), central_extra_field: Arc::new(vec![]), - file_comment: Box::new("".into()), + file_comment: String::with_capacity(0).into_boxed_str(), header_start: 0, data_start: AtomicU64::new(0), central_header_start: 0,