diff --git a/src/write.rs b/src/write.rs index 29160f124..2a746d585 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1955,7 +1955,13 @@ fn bzip2_compression_level_range() -> std::ops::RangeInclusive { min..=max } -#[cfg(any(feature = "_deflate-any", feature = "bzip2", feature = "zstd"))] +#[cfg(any( + feature = "_deflate-any", + feature = "bzip2", + feature = "ppmd", + feature = "xz", + feature = "zstd", +))] fn clamp_opt>( value: T, range: std::ops::RangeInclusive,