cargo-clippy: gradient.rs - remove redundant mask

parent 9363f539
......@@ -318,7 +318,7 @@ impl Gradient {
(f64::from((rgba >> 24) & 0xff)) / 255.0,
(f64::from((rgba >> 16) & 0xff)) / 255.0,
(f64::from((rgba >> 8) & 0xff)) / 255.0,
f64::from(((rgba >> 0) & 0xff) * u32::from(opacity)) / 255.0 / 255.0);
f64::from((rgba & 0xff) * u32::from(opacity)) / 255.0 / 255.0);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment