From 088ba527df8c207b8159ff072f79982a95da9f81 Mon Sep 17 00:00:00 2001 From: Kai Mast Date: Fri, 27 Mar 2020 17:46:01 -0700 Subject: [PATCH] remove explicit lifetimes in integration example --- examples/integration/src/controls.rs | 5 +---- 1 file changed, 1 insertion(+), 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 { let [r, g, b] = &mut self.sliders; let background_color = scene.background_color;