From 8eae69349e4b97fa4698286301c702ff59e4f94b Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 24 Apr 2024 03:51:58 -0700 Subject: [PATCH] style: fix Cargo warning re cfg(any()) Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- examples/write_dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/write_dir.rs b/examples/write_dir.rs index 162842722..81305e214 100644 --- a/examples/write_dir.rs +++ b/examples/write_dir.rs @@ -12,7 +12,7 @@ fn main() { const METHOD_STORED: Option = Some(zip::CompressionMethod::Stored); -#[cfg(any(feature = "_deflate-any"))] +#[cfg(feature = "_deflate-any")] const METHOD_DEFLATED: Option = Some(zip::CompressionMethod::Deflated); #[cfg(not(feature = "_deflate-any"))] const METHOD_DEFLATED: Option = None;