mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Fix redundant cast after upgrading csscolorparser
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user