diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-08 15:12:48 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-08 15:12:48 +0300 |
| commit | a968b1abc0f131d40c0b16ab05059035a07e77c7 (patch) | |
| tree | f0cb481d97aa0b3cbd59802f79314541d3912cd7 | |
| parent | 47c964d6fb34d6a938d173c2419f80560d9431b5 (diff) | |
| download | niri-a968b1abc0f131d40c0b16ab05059035a07e77c7.tar.gz niri-a968b1abc0f131d40c0b16ab05059035a07e77c7.tar.bz2 niri-a968b1abc0f131d40c0b16ab05059035a07e77c7.zip | |
Fix redundant cast after upgrading csscolorparser
| -rw-r--r-- | niri-config/src/lib.rs | 2 |
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)) } } |
