summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:42:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:43:05 +0200
commit2065a40f642589134142a740ff4198deaa4c378b (patch)
tree00477d6d7cb571332062535557151d5b031d8925 /examples/game_of_life/src/main.rs
parentd53cc5498b92fb6b573867f5ccb5f8ac93f6be79 (diff)
downloadiced-2065a40f642589134142a740ff4198deaa4c378b.tar.gz
iced-2065a40f642589134142a740ff4198deaa4c378b.tar.bz2
iced-2065a40f642589134142a740ff4198deaa4c378b.zip
Fix `clippy` lints for all crates and features
... and check those in CI as well!
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r--examples/game_of_life/src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index 35399584..62ecc2d1 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -280,7 +280,7 @@ mod grid {
}
}
- pub fn view<'a>(&'a mut self) -> Element<'a, Message> {
+ pub fn view(&mut self) -> Element<Message> {
Canvas::new(self)
.width(Length::Fill)
.height(Length::Fill)
@@ -328,7 +328,7 @@ mod grid {
}
}
- impl<'a> canvas::Program<Message> for Grid {
+ impl canvas::Program<Message> for Grid {
fn update(
&mut self,
event: Event,
@@ -826,13 +826,13 @@ struct Controls {
}
impl Controls {
- fn view<'a>(
- &'a mut self,
+ fn view(
+ &mut self,
is_playing: bool,
is_grid_enabled: bool,
speed: usize,
preset: Preset,
- ) -> Element<'a, Message> {
+ ) -> Element<Message> {
let playback_controls = Row::new()
.spacing(10)
.push(