fix clippy warnings
[nihav.git] / nihav-duck / src / codecs / vp7dsp.rs
index d4c06c68614b2c11aa79770d942d361c18b49d30..090eadad799c3c48d1ac7b9055c661949a5a867f 100644 (file)
@@ -172,7 +172,7 @@ pub fn fade_frame(srcfrm: NAVideoBufferRef<u8>, dstfrm: &mut NASimpleVideoFrame<
         let dstride = dstfrm.stride[plane];
         let dst = &mut dstfrm.data[dstfrm.offset[plane]..];
         for (src, dst) in src.chunks(sstride).zip(dst.chunks_mut(dstride)).take(ha) {
-            (&mut dst[0..wa]).copy_from_slice(&src[0..wa]);
+            dst[..wa].copy_from_slice(&src[..wa]);
         }
     }
 }