summaryrefslogtreecommitdiffstats
path: root/examples/bezier_tool/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-18 22:13:52 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-03-18 22:13:52 +0700
commit32fd8dadda6636b11d4a1d9f59b467e57b3706a8 (patch)
tree6acb0c0d0a14c032939412f8d177dc08c5fd75aa /examples/bezier_tool/src
parentd7100fd2597da82d97eaf196d50573ea64f3f8ff (diff)
downloadiced-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/bezier_tool/src')
-rw-r--r--examples/bezier_tool/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs
index fc7ef0c9..35b5182c 100644
--- a/examples/bezier_tool/src/main.rs
+++ b/examples/bezier_tool/src/main.rs
@@ -104,9 +104,7 @@ mod bezier {
curves: &'a [Curve],
}
- impl<'a> canvas::Program for Bezier<'a> {
- type Message = Curve;
-
+ impl<'a> canvas::Program<Curve> for Bezier<'a> {
fn update(
&mut self,
event: Event,