Derive default as now required by clippy (#376)

- [x] Changelog updated / no changelog update needed
This commit is contained in:
Gwilym Kuiper 2023-01-19 20:03:20 +00:00 committed by GitHub
commit 8789dc1dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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