Fix examples and doc-tests
This commit is contained in:
parent
cf0230072c
commit
d5bc610d01
9 changed files with 23 additions and 178 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue