style: fix Cargo warning re cfg(any())

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-04-24 03:51:58 -07:00 committed by GitHub
parent 1e23caa003
commit 8eae69349e
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ fn main() {
const METHOD_STORED: Option<zip::CompressionMethod> = Some(zip::CompressionMethod::Stored);
#[cfg(any(feature = "_deflate-any"))]
#[cfg(feature = "_deflate-any")]
const METHOD_DEFLATED: Option<zip::CompressionMethod> = Some(zip::CompressionMethod::Deflated);
#[cfg(not(feature = "_deflate-any"))]
const METHOD_DEFLATED: Option<zip::CompressionMethod> = None;