diff options
author | 2020-03-27 17:46:01 -0700 | |
---|---|---|
committer | 2020-03-27 17:46:01 -0700 | |
commit | 088ba527df8c207b8159ff072f79982a95da9f81 (patch) | |
tree | a051dd95c83d169a57aef7ca977a9c4e01dfd2ec /examples/integration | |
parent | 4d3afe2f0c6d42bb86248c1dbf5c5188e2b9e9ba (diff) | |
download | iced-088ba527df8c207b8159ff072f79982a95da9f81.tar.gz iced-088ba527df8c207b8159ff072f79982a95da9f81.tar.bz2 iced-088ba527df8c207b8159ff072f79982a95da9f81.zip |
remove explicit lifetimes in integration example
Diffstat (limited to 'examples/integration')
-rw-r--r-- | examples/integration/src/controls.rs | 5 |
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; |