aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/net/image
diff options
context:
space:
mode:
Diffstat (limited to 'components/shared/net/image')
-rw-r--r--components/shared/net/image/base.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/shared/net/image/base.rs b/components/shared/net/image/base.rs
index 74e2d8823dc..66257012df2 100644
--- a/components/shared/net/image/base.rs
+++ b/components/shared/net/image/base.rs
@@ -59,12 +59,12 @@ pub fn load_from_memory(buffer: &[u8], cors_status: CorsStatus) -> Option<Image>
Ok(_) => match image::load_from_memory(buffer) {
Ok(image) => {
let mut rgba = image.into_rgba8();
- pixels::rgba8_byte_swap_colors_inplace(&mut *rgba);
+ pixels::rgba8_byte_swap_colors_inplace(&mut rgba);
Some(Image {
width: rgba.width(),
height: rgba.height(),
format: PixelFormat::BGRA8,
- bytes: IpcSharedMemory::from_bytes(&*rgba),
+ bytes: IpcSharedMemory::from_bytes(&rgba),
id: None,
cors_status,
})