forge
Explore
Log in

Don't you dare go Hollow

S6: apply_refresh iterates the slots directly (clippy needless_range_loop); same slots written

Browse files at this commit

58d72d3ce879be333e0eaa181c4d7585c77acbf1Ahmet Kaan GümüşParent: da21edb
crates/ec-vp9-syntax/src/header.rsmodified+2 -2
@@ -649,9 +649,9 @@ impl Vp9Parser {
649 subsampling_x: h.subsampling_x,649 subsampling_x: h.subsampling_x,
650 subsampling_y: h.subsampling_y,650 subsampling_y: h.subsampling_y,
651 };651 };
652- for i in 0..NUM_REF_FRAMES {652+ for (i, dst) in self.refs.iter_mut().enumerate() {
653 if h.refresh_frame_flags & (1 << i) != 0 {653 if h.refresh_frame_flags & (1 << i) != 0 {
654- self.refs[i] = slot;654+ *dst = slot;
655 }655 }
656 }656 }
657 }657 }