diff options
author | 2022-03-18 22:13:52 +0700 | |
---|---|---|
committer | 2022-03-18 22:13:52 +0700 | |
commit | 32fd8dadda6636b11d4a1d9f59b467e57b3706a8 (patch) | |
tree | 6acb0c0d0a14c032939412f8d177dc08c5fd75aa /examples/solar_system | |
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/solar_system')
-rw-r--r-- | examples/solar_system/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index bf96fee0..12184dd1 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -128,9 +128,7 @@ impl State { } } -impl canvas::Program for State { - type Message = Message; - +impl<Message> canvas::Program<Message> for State { fn draw( &self, bounds: Rectangle, |