summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-12-06 04:40:32 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-12-06 04:40:50 +0100
commit2d58a2c03325a77893461194bd601b312a0097ca (patch)
tree8f0379ac1e212f35883cddaa8369287767a2a4e7 /core
parent1220ce55bc882cc4fef891c8b2d0fdc22e18a015 (diff)
downloadiced-2d58a2c03325a77893461194bd601b312a0097ca.tar.gz
iced-2d58a2c03325a77893461194bd601b312a0097ca.tar.bz2
iced-2d58a2c03325a77893461194bd601b312a0097ca.zip
Remove unnecessary `clippy` directives in `Color`
Diffstat (limited to '')
-rw-r--r--core/src/color.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/src/color.rs b/core/src/color.rs
index 2a4d43f4..fe0a1856 100644
--- a/core/src/color.rs
+++ b/core/src/color.rs
@@ -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,