mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41: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,
|
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,
|
||||||
|
|
Loading…
Reference in a new issue