impl default for canvas cache

This commit is contained in:
Rob Ede 2020-04-08 23:07:42 +01:00
parent ad0a6c4c10
commit 6e7769b65d
No known key found for this signature in database
GPG key ID: C2A3B36E841A91E6
3 changed files with 26 additions and 9 deletions

View file

@ -29,7 +29,7 @@ impl Application for Clock {
(
Clock {
now: chrono::Local::now().into(),
clock: canvas::layer::Cache::new(),
clock: Default::default(),
},
Command::none(),
)

View file

@ -39,7 +39,7 @@ impl Application for SolarSystem {
(
SolarSystem {
state: State::new(),
solar_system: canvas::layer::Cache::new(),
solar_system: Default::default(),
},
Command::none(),
)