diff options
author | 2023-09-19 13:30:51 +0200 | |
---|---|---|
committer | 2023-09-19 13:30:51 +0200 | |
commit | e8b01eb5435500c4b4d3135dde3d9e5910aca89e (patch) | |
tree | 668ef32e3f12f7b08e0869330ee5dbf337a47589 /examples | |
parent | 2ee2c658944b20a045a4b81209664930623300c9 (diff) | |
parent | efd0ff6ded4e647e5fad0964555dbed541a075d7 (diff) | |
download | iced-e8b01eb5435500c4b4d3135dde3d9e5910aca89e.tar.gz iced-e8b01eb5435500c4b4d3135dde3d9e5910aca89e.tar.bz2 iced-e8b01eb5435500c4b4d3135dde3d9e5910aca89e.zip |
Merge pull request #2092 from nyurik/clippy
Chore: Apply some minor clippy fixes
Diffstat (limited to 'examples')
-rw-r--r-- | examples/game_of_life/src/main.rs | 2 | ||||
-rw-r--r-- | examples/tour/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 21a21142..437d89d5 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -792,7 +792,7 @@ mod grid { } } - for (cell, amount) in adjacent_life.iter() { + for (cell, amount) in &adjacent_life { match amount { 2 => {} 3 => { diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 3e3a8ad7..952300bb 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -482,7 +482,7 @@ impl<'a> Step { column( Language::all() .iter() - .cloned() + .copied() .map(|language| { radio( language, |