remove explicit lifetimes in integration example

This commit is contained in:
Kai Mast 2020-03-27 17:46:01 -07:00
parent 4d3afe2f0c
commit 088ba527df

View File

@ -29,10 +29,7 @@ impl Controls {
} }
} }
pub fn view<'a>( pub fn view(&mut self, scene: &Scene) -> Element<Message, Renderer> {
&'a mut self,
scene: &Scene,
) -> Element<'a, Message, Renderer> {
let [r, g, b] = &mut self.sliders; let [r, g, b] = &mut self.sliders;
let background_color = scene.background_color; let background_color = scene.background_color;