mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Derive default as now required by clippy
This commit is contained in:
parent
01e4c6c147
commit
5b813c10d1
|
@ -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