From 43f44965cda8751e04195bf4c4f298147907843f Mon Sep 17 00:00:00 2001 From: eri Date: Fri, 8 Mar 2024 16:28:19 +0100 Subject: clippy: fix warnings in components/shared (#31565) * clippy: fix some warnings in components/shared * fix: unit tests * fix: review comments --- components/shared/net/image/base.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/shared/net/image') 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 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, }) -- cgit v1.2.3