Commit fb313ad9 authored by Nathan E. Egge's avatar Nathan E. Egge Committed by Raphaël Zumer

Remove more leftover unnecessary "mut"s.

parent 195958b0
......@@ -25,7 +25,7 @@ fn fill_frame(ra: &mut ChaChaRng, frame: &mut Frame) {
for plane in frame.planes.iter_mut() {
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;
}
......
......@@ -19,7 +19,7 @@ fn fill_frame(ra: &mut ChaChaRng, frame: &mut Frame) {
for plane in frame.planes.iter_mut() {
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;
}
......
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