Skip to content

Commit 8018d00

Browse files
authored
Merge pull request #118 from mathieu-aubin/patch-1
2 parents 869aa5b + 9641e1b commit 8018d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'pixels, 'rows> DynamicRows<'pixels, 'rows> {
122122
Self { width, height, f_pixels: None, pixels, gamma }
123123
}
124124

125-
fn row_rgba<'px>(&'px self, temp_row: &'px mut [MaybeUninit<RGBA>], row: usize) -> &[RGBA] {
125+
fn row_rgba<'px>(&'px self, temp_row: &'px mut [MaybeUninit<RGBA>], row: usize) -> &'px [RGBA] {
126126
match &self.pixels {
127127
PixelsSource::Pixels { rows, .. } => unsafe {
128128
std::slice::from_raw_parts(rows.as_slice()[row].0, self.width())

0 commit comments

Comments
 (0)