mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +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,
|
||||
}
|
||||
|
||||
#[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