diff options
author | 2022-05-26 23:12:11 +0200 | |
---|---|---|
committer | 2022-05-26 23:12:11 +0200 | |
commit | d5bc610d0139fb331a59fc904a932d156f637391 (patch) | |
tree | 811224c202afe989777abe0f7683405ed1ac5242 /examples/pure/tour | |
parent | cf0230072c01ea9523f4d98a3656f5c975b3f347 (diff) | |
download | iced-d5bc610d0139fb331a59fc904a932d156f637391.tar.gz iced-d5bc610d0139fb331a59fc904a932d156f637391.tar.bz2 iced-d5bc610d0139fb331a59fc904a932d156f637391.zip |
Fix examples and doc-tests
Diffstat (limited to 'examples/pure/tour')
-rw-r--r-- | examples/pure/tour/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pure/tour/src/main.rs b/examples/pure/tour/src/main.rs index 2002ad98..700e4216 100644 --- a/examples/pure/tour/src/main.rs +++ b/examples/pure/tour/src/main.rs @@ -6,7 +6,7 @@ use iced::pure::{ }; use iced::pure::{Element, Sandbox}; use iced::theme; -use iced::{Color, Length, Settings}; +use iced::{Color, Length, Renderer, Settings}; pub fn main() -> iced::Result { env_logger::init(); @@ -622,7 +622,7 @@ fn button<'a, Message: Clone>(label: &str) -> Button<'a, Message> { fn color_slider<'a>( component: f32, update: impl Fn(f32) -> Color + 'a, -) -> Slider<'a, f64, StepMessage> { +) -> Slider<'a, f64, StepMessage, Renderer> { slider(0.0..=1.0, f64::from(component), move |c| { StepMessage::TextColorChanged(update(c as f32)) }) |