Commit 195958b0 authored by Raphaël Zumer's avatar Raphaël Zumer

Remove leftover unnecessary "mut"s

parent 22042e25
......@@ -17,7 +17,7 @@ use rav1e::me;
fn fill_plane(ra: &mut ChaChaRng, plane: &mut Plane) {
let stride = plane.cfg.stride;
for row in plane.data.chunks_mut(stride) {
for mut pixel in row {
for pixel in row {
let v: u8 = ra.gen();
*pixel = v as u16;
}
......
......@@ -230,7 +230,7 @@ pub fn motion_estimation(
blk_w,
blk_h,
[ref_frame, NONE_FRAME],
[cand_mv, MotionVector { row: 0, col: 0 }]
[cand_mv, MotionVector { row: 0, col: 0 }]
);
}
......@@ -429,7 +429,7 @@ pub mod test {
let mut rec_plane = input_plane.clone();
for (i, row) in input_plane.data.chunks_mut(input_plane.cfg.stride).enumerate() {
for (j, mut pixel) in row.into_iter().enumerate() {
for (j, pixel) in row.into_iter().enumerate() {
let val = ((j + i) as i32 & 255i32) as u16;
assert!(val >= u8::min_value().into() &&
val <= u8::max_value().into());
......@@ -438,7 +438,7 @@ pub mod test {
}
for (i, row) in rec_plane.data.chunks_mut(rec_plane.cfg.stride).enumerate() {
for (j, mut pixel) in row.into_iter().enumerate() {
for (j, pixel) in row.into_iter().enumerate() {
let val = (j as i32 - i as i32 & 255i32) as u16;
assert!(val >= u8::min_value().into() &&
val <= u8::max_value().into());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment