Skip to content

Commit 7e220e8

Browse files
lovasoa197g
authored andcommitted
Fix missing borrow when using rayon
1 parent 15004d4 commit 7e220e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ fn compute_image_parallel(components: &[Component],
842842

843843
for (row, line) in image.chunks_mut(line_size)
844844
.enumerate() {
845-
upsampler.upsample_and_interleave_row(data, row, output_size.width as usize, line);
845+
upsampler.upsample_and_interleave_row(&data, row, output_size.width as usize, line);
846846
color_convert_func(line, output_size.width as usize);
847847
}
848848

0 commit comments

Comments
 (0)