Skip to content

Commit 11a7fc1

Browse files
committed
img.pixels.iter() to &img.pixels
1 parent 93e6421 commit 11a7fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ fn save_image(img: &ColorImage, file_path: &PathBuf) -> ImageResult<()> {
688688
let height = img.height();
689689
let width = img.width();
690690
let mut raw: Vec<u8> = vec![];
691-
for p in img.pixels.clone().iter() {
691+
for p in &img.pixels {
692692
raw.push(p.r());
693693
raw.push(p.g());
694694
raw.push(p.b());

0 commit comments

Comments
 (0)