From a86f87ff6f4c732d78d4efe817b7b7ce8ac7e097 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Tue, 25 Apr 2023 16:34:03 -0700 Subject: [PATCH] Remove unused imports --- src/write.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/write.rs b/src/write.rs index 24d25d56..12d26726 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1,10 +1,7 @@ //! Types for creating ZIP archives use crate::compression::CompressionMethod; -use crate::read::{ - central_header_to_zip_file, find_content, make_crypto_reader, make_reader, ZipArchive, ZipFile, - ZipFileReader, -}; +use crate::read::{central_header_to_zip_file, find_content, ZipArchive, ZipFile, ZipFileReader}; use crate::result::{ZipError, ZipResult}; use crate::spec; use crate::types::{AtomicU64, DateTime, System, ZipFileData, DEFAULT_VERSION}; @@ -911,7 +908,7 @@ impl Drop for ZipWriter { fn drop(&mut self) { if !self.inner.is_closed() { if let Err(e) = self.finalize() { - let _ = write!(io::stderr(), "ZipWriter drop failed: {e:?}"); + let _ = write!(io::stderr(), "ZipWriter drop failed: {:?}", e); } } }