summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r--examples/game_of_life/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index ab8b80e4..43ef8ffd 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -328,7 +328,9 @@ mod grid {
}
}
- impl<'a> canvas::Program<Message> for Grid {
+ impl<'a> canvas::Program for Grid {
+ type Message = Message;
+
fn update(
&mut self,
event: Event,