Fix clippy::unreadable_literal
This commit is contained in:
parent
1e4bade53a
commit
14ba939e67
3 changed files with 15 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue