Merge pull request #240 from kaimast/master

remove explicit lifetimes in integration example
This commit is contained in:
Héctor Ramón 2020-03-28 13:43:04 +01:00 committed by GitHub
commit 57b2daa57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;