diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:53:20 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:54:16 +0200 |
| commit | ed6550fdb08eae92bffab6b6b137b1e0eebf62c6 (patch) | |
| tree | 74152a38f7aa2ed2ac2fa190e81494422700ca36 /src/geom | |
| parent | 6aff11057bc88257c9383137952bb41b5b85c3dc (diff) | |
Bump dependencies
Diffstat (limited to 'src/geom')
| -rw-r--r-- | src/geom/paint.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/geom/paint.rs b/src/geom/paint.rs index a3a9b0be..4a7c9e19 100644 --- a/src/geom/paint.rs +++ b/src/geom/paint.rs @@ -181,8 +181,14 @@ impl FromStr for RgbaColor { } impl From<SynColor> for RgbaColor { - fn from(color: SynColor) -> Self { - Self::new(color.r, color.g, color.b, color.a) + fn from(SynColor { r, g, b, a }: SynColor) -> Self { + Self { r, g, b, a } + } +} + +impl From<RgbaColor> for SynColor { + fn from(RgbaColor { r, g, b, a }: RgbaColor) -> Self { + Self { r, g, b, a } } } |
