mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove remaining as_slice / as_mut_slice calls.
This commit is contained in:
parent
903305416a
commit
024323004d
3 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ impl<'a> CanvasPaintTask<'a> {
|
|||
}
|
||||
let image_rect = Rect(Point2D(0f64, 0f64), image_size);
|
||||
// rgba -> bgra
|
||||
byte_swap(imagedata.as_mut_slice());
|
||||
byte_swap(&mut imagedata);
|
||||
self.write_pixels(&imagedata, image_size, image_rect, dest_rect, smoothing_enabled);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue