diff --git a/src/entity/item/unit.rs b/src/entity/item/unit.rs index 979fb02..ec56ae5 100644 --- a/src/entity/item/unit.rs +++ b/src/entity/item/unit.rs @@ -480,13 +480,10 @@ impl Unit { } pub fn apply_modifier(&mut self, modifier: &UnitModifier) { - match modifier { - UnitModifier::AddKill{enemy: _} => { - if let Some(kills) = self.kills { - self.kills = Some(kills + 1); - } - }, - _ => {}, + if let UnitModifier::AddKill{enemy: _} = modifier { + if let Some(kills) = self.kills { + self.kills = Some(kills + 1); + } }; } }