Fixes all clippy warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-01 18:20:16 +02:00
parent 717fcdefda
commit 0d95dcf618
19 changed files with 108 additions and 55 deletions

View File

@@ -35,3 +35,13 @@ impl Ability {
&self.parameters
}
}
/// An ability index allows us to find an ability on a form. It combines a bool for whether the
/// ability is hidden or not, and then an index of the ability.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct AbilityIndex {
/// Whether or not the ability we're referring to is a hidden ability.
pub hidden: bool,
/// The index of the ability.
pub index: u8,
}