summaryrefslogtreecommitdiffstats
path: root/examples/solar_system
diff options
context:
space:
mode:
authorLibravatar Rob Ede <robjtede@icloud.com>2020-04-08 23:07:42 +0100
committerLibravatar Rob Ede <robjtede@icloud.com>2020-04-08 23:07:42 +0100
commit6e7769b65dfda1ab748eb26f8832fd32714f6fc1 (patch)
tree75013377f67c5f8632fe3e5ae3d1b6c914e84a1b /examples/solar_system
parentad0a6c4c10afe6dceed52b953cd90aa04e91098a (diff)
downloadiced-6e7769b65dfda1ab748eb26f8832fd32714f6fc1.tar.gz
iced-6e7769b65dfda1ab748eb26f8832fd32714f6fc1.tar.bz2
iced-6e7769b65dfda1ab748eb26f8832fd32714f6fc1.zip
impl default for canvas cache
Diffstat (limited to 'examples/solar_system')
-rw-r--r--examples/solar_system/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index 1967b7c5..963f047b 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -39,7 +39,7 @@ impl Application for SolarSystem {
(
SolarSystem {
state: State::new(),
- solar_system: canvas::layer::Cache::new(),
+ solar_system: Default::default(),
},
Command::none(),
)