Remove unnecessary clippy directives in Color

This commit is contained in:
Héctor Ramón Jiménez 2022-12-06 04:40:32 +01:00
parent 1220ce55bc
commit 2d58a2c033
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -91,8 +91,6 @@ impl Color {
/// Converts the [`Color`] into its RGBA8 equivalent.
#[must_use]
#[allow(clippy::cast_sign_loss)]
#[allow(clippy::cast_possible_truncation)]
pub fn into_rgba8(self) -> [u8; 4] {
[
(self.r * 255.0).round() as u8,