mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Derive default as now required by clippy (#376)
- [x] Changelog updated / no changelog update needed
This commit is contained in:
commit
8789dc1dac
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue