Merge pull request #267 from robjtede/improve/canvas-cache-default
impl default for canvas cache
This commit is contained in:
commit
d51b501d2f
3 changed files with 26 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ impl Application for Clock {
|
|||
(
|
||||
Clock {
|
||||
now: chrono::Local::now().into(),
|
||||
clock: canvas::layer::Cache::new(),
|
||||
clock: Default::default(),
|
||||
},
|
||||
Command::none(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ impl Application for SolarSystem {
|
|||
(
|
||||
SolarSystem {
|
||||
state: State::new(),
|
||||
solar_system: canvas::layer::Cache::new(),
|
||||
solar_system: Default::default(),
|
||||
},
|
||||
Command::none(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue