diff --git a/src/models/battle_results_dat.rs b/src/models/battle_results_dat.rs index f48181a..d6c5cbe 100644 --- a/src/models/battle_results_dat.rs +++ b/src/models/battle_results_dat.rs @@ -30,3 +30,11 @@ impl BattleResultsDat { BattleResults::decode(self.1.as_ref()).map_err(Error::DecodeFailed) } } + +impl TryInto for BattleResultsDat { + type Error = Error; + + fn try_into(self) -> Result { + self.decode_battle_results() + } +}