Clippy fixes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-12-24 14:03:47 +01:00
parent efdaf730e6
commit f4d09a8915
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ use pkmn_lib::static_data::{
GrowthRateLibrary, GrowthRateLibraryImpl, ItemImpl, ItemLibrary, ItemLibraryImpl, LearnableMoves,
LearnableMovesImpl, LibrarySettingsImpl, LookupGrowthRate, MoveDataImpl, MoveLibrary, MoveLibraryImpl, NatureImpl,
NatureLibrary, NatureLibraryImpl, SecondaryEffect, SecondaryEffectImpl, SpeciesImpl, SpeciesLibrary,
SpeciesLibraryImpl, StaticData, StaticDataImpl, StaticStatisticSet, Statistic, TypeLibrary, TypeLibraryImpl,
SpeciesLibraryImpl, StaticDataImpl, StaticStatisticSet, Statistic, TypeLibrary, TypeLibraryImpl,
};
use pkmn_lib::StringKey;
@ -37,7 +37,7 @@ pub fn load_library() -> Arc<dyn DynamicLibrary> {
let moves = load_moves(&path, &types);
let species = load_species(&path, &types, &moves);
let mut data = StaticDataImpl::new(
let data = StaticDataImpl::new(
Box::new(LibrarySettingsImpl::new(100)),
species,
moves,

View File

@ -1,6 +1,7 @@
#![feature(custom_test_frameworks)]
#![feature(once_cell)]
#![test_runner(datatest::runner)]
#![allow(clippy::borrowed_box)]
use std::fs::File;
use std::io::Read;