Fix clippy::unreadable_literal

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 05:19:24 +02:00
parent 1e4bade53a
commit 14ba939e67
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 15 additions and 10 deletions

View file

@ -172,9 +172,9 @@ impl Cache {
for pixel in
bytemuck::cast_slice_mut::<u8, u32>(image.data_mut())
{
*pixel = *pixel & 0xFF00FF00
| ((0x000000FF & *pixel) << 16)
| ((0x00FF0000 & *pixel) >> 16);
*pixel = *pixel & 0xFF00_FF00
| ((0x0000_00FF & *pixel) << 16)
| ((0x00FF_0000 & *pixel) >> 16);
}
}