diff options
author | 2023-03-13 14:16:45 -0700 | |
---|---|---|
committer | 2023-03-13 14:16:45 -0700 | |
commit | 8ba18430800142965549077373e2a45d0a3429a1 (patch) | |
tree | 0ba36d187e3c66e88476779dc40ba3cf0b28bff0 /examples/solar_system/src | |
parent | fa068b904a904c86195ebfaa4e953466426a27aa (diff) | |
download | iced-8ba18430800142965549077373e2a45d0a3429a1.tar.gz iced-8ba18430800142965549077373e2a45d0a3429a1.tar.bz2 iced-8ba18430800142965549077373e2a45d0a3429a1.zip |
Code cleanup, clearer comments + removed some unnecessary dupe;
Removed `Frames` struct return for `window::frames()` since we are just redrawing every window anyways;
Interface dropping;
Diffstat (limited to 'examples/solar_system/src')
-rw-r--r-- | examples/solar_system/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index eb461bb0..9a4ee754 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -89,7 +89,7 @@ impl Application for SolarSystem { } fn subscription(&self) -> Subscription<Message> { - window::frames().map(|frame| Message::Tick(frame.at)) + window::frames().map(Message::Tick) } } |