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;
This commit is contained in:
parent
fa068b904a
commit
8ba1843080
11 changed files with 59 additions and 103 deletions
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue