Use associated type for Message in a canvas::Program
This commit is contained in:
parent
12c1a3f829
commit
c52fd089f1
7 changed files with 37 additions and 24 deletions
|
|
@ -104,7 +104,9 @@ mod bezier {
|
|||
curves: &'a [Curve],
|
||||
}
|
||||
|
||||
impl<'a> canvas::Program<Curve> for Bezier<'a> {
|
||||
impl<'a> canvas::Program for Bezier<'a> {
|
||||
type Message = Curve;
|
||||
|
||||
fn update(
|
||||
&mut self,
|
||||
event: Event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue