summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-03-28 13:43:04 +0100
committerLibravatar GitHub <noreply@github.com>2020-03-28 13:43:04 +0100
commit57b2daa57e7312b3015817d8f400b3523f2e42a7 (patch)
tree2096e5c80ac5b1dbdfbf4afce866792bd8c4c5e3 /examples/integration
parentebc9d275a44bc11f48f49a198a378ac201e86d77 (diff)
parent088ba527df8c207b8159ff072f79982a95da9f81 (diff)
downloadiced-57b2daa57e7312b3015817d8f400b3523f2e42a7.tar.gz
iced-57b2daa57e7312b3015817d8f400b3523f2e42a7.tar.bz2
iced-57b2daa57e7312b3015817d8f400b3523f2e42a7.zip
Merge pull request #240 from kaimast/master
remove explicit lifetimes in integration example
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/src/controls.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/integration/src/controls.rs b/examples/integration/src/controls.rs
index 0457a058..0999336b 100644
--- a/examples/integration/src/controls.rs
+++ b/examples/integration/src/controls.rs
@@ -29,10 +29,7 @@ impl Controls {
}
}
- pub fn view<'a>(
- &'a mut self,
- scene: &Scene,
- ) -> Element<'a, Message, Renderer> {
+ pub fn view(&mut self, scene: &Scene) -> Element<Message, Renderer> {
let [r, g, b] = &mut self.sliders;
let background_color = scene.background_color;