diff options
author | 2023-03-13 14:16:45 -0700 | |
---|---|---|
committer | 2023-03-13 14:16:45 -0700 | |
commit | 8ba18430800142965549077373e2a45d0a3429a1 (patch) | |
tree | 0ba36d187e3c66e88476779dc40ba3cf0b28bff0 /examples | |
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 '')
-rw-r--r-- | examples/multi_window/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/solar_system/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/multi_window/Cargo.toml b/examples/multi_window/Cargo.toml index 0bb83f37..a59a0e68 100644 --- a/examples/multi_window/Cargo.toml +++ b/examples/multi_window/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -iced = { path = "../..", features = ["debug", "multi_window", "tokio"] } +iced = { path = "../..", features = ["debug", "multi-window", "tokio"] } env_logger = "0.10.0" iced_native = { path = "../../native" } iced_lazy = { path = "../../lazy" } 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) } } |