fix clippy warnings
[nihav.git] / nihav-commonfmt / src / lib.rs
index b5b96d2e756ec7b7b42bc3e220e37dbfc10f36a6..cdd2cd9ffd3df810a5c5ba29ef57c561f929b680 100644 (file)
@@ -1,17 +1,21 @@
+//! Crate for providing support for various common formats.
 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)]
 #[allow(clippy::too_many_arguments)]
 #[allow(clippy::excessive_precision)]
+#[allow(clippy::upper_case_acronyms)]
+#[allow(clippy::manual_range_contains)]
+#[allow(clippy::collapsible_else_if)]
 mod codecs;
 
 #[cfg(feature="decoders")]
-pub use crate::codecs::generic_register_all_codecs;
+pub use crate::codecs::generic_register_all_decoders;
 #[cfg(feature="encoders")]
 pub use crate::codecs::generic_register_all_encoders;