From c52fd089f102be4e2ac07952106e2b6924e72e68 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 9 Mar 2022 18:27:22 +0700 Subject: Use associated type for `Message` in a `canvas::Program` --- examples/solar_system/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/solar_system/src') diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 12184dd1..bf96fee0 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -128,7 +128,9 @@ impl State { } } -impl canvas::Program for State { +impl canvas::Program for State { + type Message = Message; + fn draw( &self, bounds: Rectangle, -- cgit