summaryrefslogtreecommitdiffstats
path: root/examples/integration_wgpu/src/controls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/integration_wgpu/src/controls.rs')
-rw-r--r--examples/integration_wgpu/src/controls.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/integration_wgpu/src/controls.rs b/examples/integration_wgpu/src/controls.rs
index 533cb6e2..8c42513f 100644
--- a/examples/integration_wgpu/src/controls.rs
+++ b/examples/integration_wgpu/src/controls.rs
@@ -100,11 +100,10 @@ impl Program for Controls {
.size(14)
.style(Color::WHITE),
)
- .push(text_input(
- "Placeholder",
- text,
- Message::TextChanged,
- )),
+ .push(
+ text_input("Placeholder", text)
+ .on_change(Message::TextChanged),
+ ),
),
)
.into()