Fix redundant cast after upgrading csscolorparser

This commit is contained in:
Ivan Molodetskikh
2024-08-08 15:12:48 +03:00
parent 47c964d6fb
commit a968b1abc0
+1 -1
View File
@@ -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))
}
}