-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Fedora recently updated its palette
crate to 0.6. This crate version introduced some breaking changes to the conversion traits. backend/src/colors.rs
produces the following errors during compilation.
warning: unused imports: `Component`, `IntoColor`
--> backend/src/color.rs:2:15
|
2 | use palette::{Component, IntoColor, RgbHue};
| ^^^^^^^^^ ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0599]: no method named `convert` found for type `u8` in the current scope
--> backend/src/color.rs:41:21
|
41 | Self::new(h.convert::<f64>() * (2. * PI), s.convert())
| ^^^^^^^ method not found in `u8`
error[E0599]: no method named `convert` found for type `u8` in the current scope
--> backend/src/color.rs:41:53
|
41 | Self::new(h.convert::<f64>() * (2. * PI), s.convert())
| ^^^^^^^ method not found in `u8`
error[E0599]: no method named `convert` found for type `f64` in the current scope
--> backend/src/color.rs:46:12
|
46 | (h.convert(), self.s.convert())
| ^^^^^^^ method not found in `f64`
error[E0599]: no method named `convert` found for struct `NotNan<f64>` in the current scope
--> backend/src/color.rs:46:30
|
46 | (h.convert(), self.s.convert())
| ^^^^^^^ method not found in `NotNan<f64>`
error[E0599]: no method named `into_rgb` found for struct `Hsv` in the current scope
--> backend/src/color.rs:52:39
|
52 | let rgb: PaletteLinSrgb = hsv.into_rgb();
| ^^^^^^^^ method not found in `Hsv<Srgb, f64>`
error[E0599]: no method named `convert` found for type `f64` in the current scope
--> backend/src/color.rs:77:18
|
77 | r: r.convert(),
| ^^^^^^^ method not found in `f64`
error[E0599]: no method named `convert` found for type `f64` in the current scope
--> backend/src/color.rs:78:18
|
78 | g: g.convert(),
| ^^^^^^^ method not found in `f64`
error[E0599]: no method named `convert` found for type `f64` in the current scope
--> backend/src/color.rs:79:18
|
79 | b: b.convert(),
| ^^^^^^^ method not found in `f64`
error[E0599]: no method named `convert` found for type `u8` in the current scope
--> backend/src/color.rs:84:17
|
84 | (self.r.convert(), self.g.convert(), self.b.convert())
| ^^^^^^^ method not found in `u8`
error[E0599]: no method named `convert` found for type `u8` in the current scope
--> backend/src/color.rs:84:35
|
84 | (self.r.convert(), self.g.convert(), self.b.convert())
| ^^^^^^^ method not found in `u8`
error[E0599]: no method named `convert` found for type `u8` in the current scope
--> backend/src/color.rs:84:53
|
84 | (self.r.convert(), self.g.convert(), self.b.convert())
| ^^^^^^^ method not found in `u8`
error[E0599]: no method named `into_hsv` found for struct `palette::rgb::Rgb` in the current scope
--> backend/src/color.rs:103:35
|
103 | let hsv: PaletteHsv = rgb.into_hsv();
| ^^^^^^^^ method not found in `palette::rgb::Rgb<Linear<Srgb>, f64>`
Metadata
Metadata
Assignees
Labels
No labels