summaryrefslogtreecommitdiffstats
path: root/examples/integration/src/controls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/integration/src/controls.rs')
-rw-r--r--examples/integration/src/controls.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/integration/src/controls.rs b/examples/integration/src/controls.rs
index 89a595c1..c9bab828 100644
--- a/examples/integration/src/controls.rs
+++ b/examples/integration/src/controls.rs
@@ -29,8 +29,9 @@ impl Controls {
}
impl Program for Controls {
- type Renderer = Renderer<Theme>;
+ type Theme = Theme;
type Message = Message;
+ type Renderer = Renderer;
fn update(&mut self, message: Message) -> Command<Message> {
match message {
@@ -45,7 +46,7 @@ impl Program for Controls {
Command::none()
}
- fn view(&self) -> Element<Message, Renderer<Theme>> {
+ fn view(&self) -> Element<Message, Theme, Renderer> {
let background_color = self.background_color;
let text = &self.text;