Merge pull request #267 from robjtede/improve/canvas-cache-default

impl default for canvas cache
This commit is contained in:
Héctor Ramón 2020-04-09 00:34:37 +02:00 committed by GitHub
commit d51b501d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(),
)