summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 23:12:11 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 23:12:11 +0200
commitd5bc610d0139fb331a59fc904a932d156f637391 (patch)
tree811224c202afe989777abe0f7683405ed1ac5242 /examples/game_of_life/src/main.rs
parentcf0230072c01ea9523f4d98a3656f5c975b3f347 (diff)
downloadiced-d5bc610d0139fb331a59fc904a932d156f637391.tar.gz
iced-d5bc610d0139fb331a59fc904a932d156f637391.tar.bz2
iced-d5bc610d0139fb331a59fc904a932d156f637391.zip
Fix examples and doc-tests
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r--examples/game_of_life/src/main.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index 3e9c24a0..080cbac3 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -850,15 +850,12 @@ impl Controls {
.width(Length::Fill)
.align_items(Alignment::Center)
.spacing(10)
- .push(
- Slider::new(
- &mut self.speed_slider,
- 1.0..=1000.0,
- speed as f32,
- Message::SpeedChanged,
- )
- .style(style::Slider),
- )
+ .push(Slider::new(
+ &mut self.speed_slider,
+ 1.0..=1000.0,
+ speed as f32,
+ Message::SpeedChanged,
+ ))
.push(Text::new(format!("x{}", speed)).size(16));
Row::new()