Clippy fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
efdaf730e6
commit
f4d09a8915
|
@ -20,7 +20,7 @@ use pkmn_lib::static_data::{
|
||||||
GrowthRateLibrary, GrowthRateLibraryImpl, ItemImpl, ItemLibrary, ItemLibraryImpl, LearnableMoves,
|
GrowthRateLibrary, GrowthRateLibraryImpl, ItemImpl, ItemLibrary, ItemLibraryImpl, LearnableMoves,
|
||||||
LearnableMovesImpl, LibrarySettingsImpl, LookupGrowthRate, MoveDataImpl, MoveLibrary, MoveLibraryImpl, NatureImpl,
|
LearnableMovesImpl, LibrarySettingsImpl, LookupGrowthRate, MoveDataImpl, MoveLibrary, MoveLibraryImpl, NatureImpl,
|
||||||
NatureLibrary, NatureLibraryImpl, SecondaryEffect, SecondaryEffectImpl, SpeciesImpl, SpeciesLibrary,
|
NatureLibrary, NatureLibraryImpl, SecondaryEffect, SecondaryEffectImpl, SpeciesImpl, SpeciesLibrary,
|
||||||
SpeciesLibraryImpl, StaticData, StaticDataImpl, StaticStatisticSet, Statistic, TypeLibrary, TypeLibraryImpl,
|
SpeciesLibraryImpl, StaticDataImpl, StaticStatisticSet, Statistic, TypeLibrary, TypeLibraryImpl,
|
||||||
};
|
};
|
||||||
use pkmn_lib::StringKey;
|
use pkmn_lib::StringKey;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ pub fn load_library() -> Arc<dyn DynamicLibrary> {
|
||||||
let moves = load_moves(&path, &types);
|
let moves = load_moves(&path, &types);
|
||||||
let species = load_species(&path, &types, &moves);
|
let species = load_species(&path, &types, &moves);
|
||||||
|
|
||||||
let mut data = StaticDataImpl::new(
|
let data = StaticDataImpl::new(
|
||||||
Box::new(LibrarySettingsImpl::new(100)),
|
Box::new(LibrarySettingsImpl::new(100)),
|
||||||
species,
|
species,
|
||||||
moves,
|
moves,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#![feature(custom_test_frameworks)]
|
#![feature(custom_test_frameworks)]
|
||||||
#![feature(once_cell)]
|
#![feature(once_cell)]
|
||||||
#![test_runner(datatest::runner)]
|
#![test_runner(datatest::runner)]
|
||||||
|
#![allow(clippy::borrowed_box)]
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
|
Loading…
Reference in New Issue