Remove unnecessary clippy directives in Color
This commit is contained in:
parent
1220ce55bc
commit
2d58a2c033
1 changed files with 0 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue