fix clippy errors
[nihav.git] / nihav-duck / src / codecs / truemotion2.rs
index 84162b55ffd87c0a55a1515d64cca48e6fd3ca82..2e0ff5e745eaa9ba65cab21f4ba393343281b685 100644 (file)
@@ -223,6 +223,7 @@ struct DeltaState {
     dc: [[i32; 2]; 2],
 }
 
+#[allow(clippy::erasing_op)]
 impl DeltaState {
     fn apply_y(&mut self, dst: &mut [u8], mut yoff: usize, ystride: usize, ydeltas: &[i32; 16], last: &mut [i32]) {
         for y in 0..4 {
@@ -589,7 +590,7 @@ impl NADecoder for TM2Decoder {
     }
 }
 
-pub fn get_decoder() -> Box<NADecoder> {
+pub fn get_decoder() -> Box<dyn NADecoder> {
     Box::new(TM2Decoder::new())
 }