summaryrefslogtreecommitdiffstats
path: root/examples/solar_system
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 03:46:03 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 03:52:12 +0200
commite4eb0553de13053c9828fd5454c281e27e598d65 (patch)
tree3b3b353df461414ad4f5176fe091117d16a0ea6c /examples/solar_system
parent2ca73036ab5946b451fd2b184541ae4dc6eedb24 (diff)
downloadiced-e4eb0553de13053c9828fd5454c281e27e598d65.tar.gz
iced-e4eb0553de13053c9828fd5454c281e27e598d65.tar.bz2
iced-e4eb0553de13053c9828fd5454c281e27e598d65.zip
Allow `canvas::State` to produce messages
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 5392f712..9337c7b5 100644
--- a/examples/solar_system/src/main.rs
+++ b/examples/solar_system/src/main.rs
@@ -136,7 +136,7 @@ impl State {
}
}
-impl canvas::State for State {
+impl<Message> canvas::State<Message> for State {
fn draw(&self, bounds: Size) -> Vec<canvas::Geometry> {
vec![
self.space_cache.draw(bounds, self.space()),