From c74735bf84b52edd8c0312e09b0397afa5327ab3 Mon Sep 17 00:00:00 2001 From: Johann Fuechsl Date: Tue, 8 Jun 2021 21:25:18 +0200 Subject: [PATCH] Fix typo in feature name for xz codec. --- src/codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codec.rs b/src/codec.rs index 93ccfd1..8b6c61d 100644 --- a/src/codec.rs +++ b/src/codec.rs @@ -265,7 +265,7 @@ impl std::convert::TryFrom<&str> for Codec { "zstd" => Ok(Codec::Zstd), #[cfg(feature = "bzip2")] "bzip2" => Ok(Codec::Bzip2), - #[cfg(feature = "bzip2")] + #[cfg(feature = "xz")] "xz" => Ok(Codec::Xz), o => Err(AvrowErr::UnsupportedCodec(o.to_string())), }