fix clippy warnings
[nihav.git] / nihav-commonfmt / src / lib.rs
index c4a2ca72ab46e7d6818b771c1474755251fc733b..cdd2cd9ffd3df810a5c5ba29ef57c561f929b680 100644 (file)
@@ -1,15 +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;