Derive default as now required by clippy

This commit is contained in:
Gwilym Kuiper 2023-01-15 20:49:30 +00:00
parent 01e4c6c147
commit 5b813c10d1

View file

@ -21,18 +21,14 @@ enum UpdateState {
Remove, Remove,
} }
#[derive(Default)]
pub enum Enemy<'a> { pub enum Enemy<'a> {
Slime(Slime<'a>), Slime(Slime<'a>),
Snail(Snail<'a>), Snail(Snail<'a>),
#[default]
Empty, Empty,
} }
impl<'a> Default for Enemy<'a> {
fn default() -> Self {
Enemy::Empty
}
}
pub enum EnemyUpdateState { pub enum EnemyUpdateState {
None, None,
KillPlayer, KillPlayer,