correct some crate configurations for enabling/disabling features
[nihav.git] / nihav-commonfmt / src / lib.rs
index 54fff4ba4f3d387fae12c790893d013d0574959a..528b8b724a46e8d528b23fa2dc657636f6a264bd 100644 (file)
@@ -3,7 +3,7 @@ extern crate nihav_core;
 extern crate nihav_codec_support;
 extern crate nihav_registry;
 
-#[cfg(feature="decoders")]
+#[cfg(any(feature="decoders", feature="encoders"))]
 #[allow(clippy::needless_range_loop)]
 #[allow(clippy::single_match)]
 #[allow(clippy::unreadable_literal)]