From 48b1adb64b5f44e023c0f8eabaa5926d1bae64a1 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Mon, 27 May 2024 16:58:02 -0700 Subject: [PATCH] fix: Derive `Debug` for `ZipWriter` --- src/write.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 93d3d19d..5f86fb34 100644 --- a/src/write.rs +++ b/src/write.rs @@ -120,6 +120,7 @@ pub(crate) mod zip_writer { /// # } /// # doit().unwrap(); /// ``` + #[derive(Debug)] pub struct ZipWriter { pub(super) inner: GenericZipWriter, pub(super) files: IndexMap, ZipFileData>, @@ -142,7 +143,7 @@ use crate::zipcrypto::ZipCryptoKeys; use crate::CompressionMethod::Stored; pub use zip_writer::ZipWriter; -#[derive(Default)] +#[derive(Default, Debug)] struct ZipWriterStats { hasher: Hasher, start: u64,