duck: fix or silence clippy warnings
[nihav.git] / nihav-duck / src / codecs / truemotion2x.rs
index 586c26e0a6b1fee46492b85c0d00b660e1be3060..76ca244352d82cf0f538661aedcced6623526ba1 100644 (file)
@@ -275,6 +275,9 @@ impl TM2XDecoder {
         Ok(())
     }
 
+    #[allow(clippy::int_plus_one)]
+    #[allow(clippy::manual_memcpy)]
+    #[allow(clippy::cyclomatic_complexity)]
     fn decode_frame(&mut self, src: &[u8]) -> DecoderResult<()> {
         let mut mr = MemoryReader::new_read(src);
         let mut br = ByteReader::new(&mut mr);
@@ -692,6 +695,12 @@ impl NADecoder for TM2XDecoder {
     }
 }
 
+impl NAOptionHandler for TM2XDecoder {
+    fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+    fn set_options(&mut self, _options: &[NAOption]) { }
+    fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
 pub fn get_decoder() -> Box<dyn NADecoder + Send> {
     Box::new(TM2XDecoder::new())
 }