clippy
This commit is contained in:
@@ -15,7 +15,7 @@ pub fn random_palette() -> Palette {
|
||||
const fn hex_to_color(c: usize) -> image::Rgb<u8> {
|
||||
let r = (c >> 16) & 0xff;
|
||||
let g = (c >> 8) & 0xff;
|
||||
let b = (c >> 0) & 0xff;
|
||||
let b = c & 0xff;
|
||||
image::Rgb::<u8>([r as u8, g as u8, b as u8])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user