realmedia: fix or silence clippy warnings
[nihav.git] / nihav-realmedia / src / codecs / cook.rs
index 448ccae1e569ab7347792d2be581d4d3486e027b..2ac7a66c3b98d361cfeac5915afdc0c7f3ec835e 100644 (file)
@@ -456,7 +456,7 @@ impl CookChannelPair {
                 *out *= cur_gain;
                 cur_gain *= cur_gain2;
             }
-            for i in 0..self.samples { self.delay[ch][i] = dsp.out[i]; }
+            self.delay[ch][..self.samples].copy_from_slice(&dsp.out[..self.samples]);
         }
         Ok(())
     }
@@ -676,6 +676,12 @@ impl NADecoder for CookDecoder {
     }
 }
 
+impl NAOptionHandler for CookDecoder {
+    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(CookDecoder::new())
 }