aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--niri-config/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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<Self, Self::Err> {
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))
}
}