diff options
author | eri <eri@inventati.org> | 2024-03-08 16:28:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 15:28:19 +0000 |
commit | 43f44965cda8751e04195bf4c4f298147907843f (patch) | |
tree | 970527d416716fcd82caf89a5821c050b62a6145 /components/shared/net/image | |
parent | 3a5ca785d3ecc1fd6cb5a519cf1a91ac61e15c8c (diff) | |
download | servo-43f44965cda8751e04195bf4c4f298147907843f.tar.gz servo-43f44965cda8751e04195bf4c4f298147907843f.zip |
clippy: fix warnings in components/shared (#31565)
* clippy: fix some warnings in components/shared
* fix: unit tests
* fix: review comments
Diffstat (limited to 'components/shared/net/image')
-rw-r--r-- | components/shared/net/image/base.rs | 4 |
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, }) |