From 812498e7885e9da4c2a58dbc1de0632b6e8a5adb Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 11 Apr 2024 13:18:22 -0700 Subject: [PATCH] Bug fix: conditionally unused import --- src/write.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 21d6f497..e4dc9d50 100644 --- a/src/write.rs +++ b/src/write.rs @@ -129,7 +129,9 @@ pub(crate) mod zip_writer { pub(super) flush_on_finish_file: bool, } } -use crate::result::ZipError::{InvalidArchive, UnsupportedArchive}; +use crate::result::ZipError::{InvalidArchive}; +#[cfg(feature = "lzma")] +use crate::result::ZipError::UnsupportedArchive; use crate::write::GenericZipWriter::{Closed, Storer}; use crate::zipcrypto::ZipCryptoKeys; use crate::CompressionMethod::Stored;