summaryrefslogtreecommitdiffstats
path: root/examples/solar_system
diff options
context:
space:
mode:
Diffstat (limited to 'examples/solar_system')
-rw-r--r--examples/solar_system/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index cee9a02f..fc53d8f7 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -65,8 +65,7 @@ impl Application for SolarSystem {
}
fn subscription(&self) -> Subscription<Message> {
- time::every(std::time::Duration::from_millis(10))
- .map(|instant| Message::Tick(instant))
+ time::every(std::time::Duration::from_millis(10)).map(Message::Tick)
}
fn view(&mut self) -> Element<Message> {