Fixes all clippy warnings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
/// 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,
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
use hashbrown::HashSet;
|
||||
|
||||
use crate::static_data::LearnableMoves;
|
||||
use crate::static_data::Statistic;
|
||||
use crate::static_data::TypeIdentifier;
|
||||
use crate::static_data::{Ability, StaticStatisticSet};
|
||||
use crate::static_data::{AbilityIndex, TypeIdentifier};
|
||||
use crate::static_data::{AbilityIndex, LearnableMoves};
|
||||
use crate::Random;
|
||||
use crate::StringKey;
|
||||
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
#[doc(inline)]
|
||||
pub use ability::Ability;
|
||||
pub use ability::*;
|
||||
#[doc(inline)]
|
||||
pub use ability_index::AbilityIndex;
|
||||
pub use form::*;
|
||||
#[doc(inline)]
|
||||
pub use form::Form;
|
||||
pub use gender::*;
|
||||
#[doc(inline)]
|
||||
pub use gender::Gender;
|
||||
pub use learnable_moves::*;
|
||||
#[doc(inline)]
|
||||
pub use learnable_moves::LearnableMoves;
|
||||
#[doc(inline)]
|
||||
pub use species::Species;
|
||||
pub use species::*;
|
||||
|
||||
/// An ability is a passive effect in battle that is attached to a Pokemon.
|
||||
mod ability;
|
||||
mod ability_index;
|
||||
/// A form is a variant of a specific species. A species always has at least one form, but can have
|
||||
/// many more.
|
||||
mod form;
|
||||
/// Gender is a Pokemon characteristic.
|
||||
mod gender;
|
||||
/// This allows for storage of the moves a Pokemon can learn.
|
||||
mod learnable_moves;
|
||||
/// The data belonging to a Pokemon with certain characteristics.
|
||||
mod species;
|
||||
|
||||
Reference in New Issue
Block a user