Fix examples and doc-tests

This commit is contained in:
Héctor Ramón Jiménez 2022-05-26 23:12:11 +02:00
parent cf0230072c
commit d5bc610d01
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
9 changed files with 23 additions and 178 deletions

View file

@ -288,7 +288,7 @@ impl<C: 'static + ColorSpace + Copy> ColorPicker<C> {
range: RangeInclusive<f64>,
component: f32,
update: impl Fn(f32) -> C + 'static,
) -> Slider<f64, C> {
) -> Slider<f64, C, iced::Renderer> {
Slider::new(state, range, f64::from(component), move |v| {
update(v as f32)
})