From a968b1abc0f131d40c0b16ab05059035a07e77c7 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 8 Aug 2024 15:12:48 +0300 Subject: Fix redundant cast after upgrading csscolorparser --- niri-config/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index cfc8cb18..e9c7d346 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -1553,7 +1553,7 @@ impl FromStr for Color { fn from_str(s: &str) -> Result { let color = csscolorparser::parse(s).into_diagnostic()?.to_array(); - Ok(Self::from_array_unpremul(color.map(|x| x as f32))) + Ok(Self::from_array_unpremul(color)) } } -- cgit