summaryrefslogtreecommitdiff
path: root/src/cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 53e9860..6571cd5 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -43,8 +43,9 @@ impl AnimationTimer {
}
}
-#[derive(Debug, PartialEq, Clone, Copy)]
+#[derive(Debug, PartialEq, Clone, Copy, Default)]
pub enum Occupant {
+ #[default]
None,
Green,
Yellow,
@@ -54,12 +55,6 @@ pub enum Occupant {
Explosion,
}
-impl Default for Occupant {
- fn default() -> Occupant {
- Occupant::None
- }
-}
-
impl Occupant {
pub fn to_index(&self) -> usize {
match self {