summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/game_of_life/src/main.rs2
-rw-r--r--examples/tour/src/main.rs2
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,