Skip to content

Commit

Permalink
Merge pull request #118 from mathieu-aubin/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored Sep 10, 2024
2 parents 869aa5b + 9641e1b commit 8018d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'pixels, 'rows> DynamicRows<'pixels, 'rows> {
Self { width, height, f_pixels: None, pixels, gamma }
}

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

0 comments on commit 8018d00

Please sign in to comment.