diff options
author | 2022-03-18 22:13:52 +0700 | |
---|---|---|
committer | 2022-03-18 22:13:52 +0700 | |
commit | 32fd8dadda6636b11d4a1d9f59b467e57b3706a8 (patch) | |
tree | 6acb0c0d0a14c032939412f8d177dc08c5fd75aa /examples/pure/game_of_life | |
parent | d7100fd2597da82d97eaf196d50573ea64f3f8ff (diff) | |
download | iced-32fd8dadda6636b11d4a1d9f59b467e57b3706a8.tar.gz iced-32fd8dadda6636b11d4a1d9f59b467e57b3706a8.tar.bz2 iced-32fd8dadda6636b11d4a1d9f59b467e57b3706a8.zip |
Reintroduce generic `Message` type for `canvas::Program`
As it is useful to make the `Message` completely free in many
implementations.
Diffstat (limited to 'examples/pure/game_of_life')
-rw-r--r-- | examples/pure/game_of_life/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pure/game_of_life/src/main.rs b/examples/pure/game_of_life/src/main.rs index f63ef41b..a3164701 100644 --- a/examples/pure/game_of_life/src/main.rs +++ b/examples/pure/game_of_life/src/main.rs @@ -394,8 +394,7 @@ mod grid { } } - impl canvas::Program for Grid { - type Message = Message; + impl canvas::Program<Message> for Grid { type State = Interaction; fn update( |