summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 05:03:25 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 05:03:25 +0200
commitcaed50b277495e4375975f3f4e271b8fcbc0c33f (patch)
tree35e20b9c578b22598ca618e0bd34f9b619e7d176 /examples/game_of_life
parent42ed90bc6f92b2085d193e7f143430b8d3847c21 (diff)
downloadiced-caed50b277495e4375975f3f4e271b8fcbc0c33f.tar.gz
iced-caed50b277495e4375975f3f4e271b8fcbc0c33f.tar.bz2
iced-caed50b277495e4375975f3f4e271b8fcbc0c33f.zip
Fix `clippy::match-wildcard-for-single-variants`
Diffstat (limited to 'examples/game_of_life')
-rw-r--r--examples/game_of_life/src/main.rs4
1 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 437d89d5..c774e769 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -472,7 +472,7 @@ mod grid {
* (1.0 / self.scaling),
))
}
- _ => None,
+ Interaction::None => None,
};
let event_status = match interaction {
@@ -676,7 +676,7 @@ mod grid {
Interaction::None if cursor.is_over(bounds) => {
mouse::Interaction::Crosshair
}
- _ => mouse::Interaction::default(),
+ Interaction::None => mouse::Interaction::default(),
}
}
}