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:
@@ -43,6 +43,6 @@ pub trait DataLibrary<'a, T: 'a> {
|
||||
/// Gets a random value from the library.
|
||||
fn random_value(&self, rand: &mut Random) -> &T {
|
||||
let i = rand.get_between(0, self.len() as i32);
|
||||
return &self.map().get_index(i as usize).unwrap().1;
|
||||
return self.map().get_index(i as usize).unwrap().1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,12 +17,21 @@ pub use static_data::StaticData;
|
||||
#[doc(inline)]
|
||||
pub use type_library::*;
|
||||
|
||||
/// The library data for abilities.
|
||||
mod ability_library;
|
||||
/// Basic helper trait for libraries.
|
||||
mod data_library;
|
||||
/// The library data for groth rates.
|
||||
mod growth_rate_library;
|
||||
/// The library data for items.
|
||||
mod item_library;
|
||||
/// The library data for misc settings.
|
||||
mod library_settings;
|
||||
/// The library data for moves.
|
||||
mod move_library;
|
||||
/// The library data for species.
|
||||
mod species_library;
|
||||
/// The combination of all libraries.
|
||||
pub(crate) mod static_data;
|
||||
/// The library data for types.
|
||||
mod type_library;
|
||||
|
||||
Reference in New Issue
Block a user