diff --git a/tests/common/library_loader.rs b/tests/common/library_loader.rs index 1e250fb..31951c4 100755 --- a/tests/common/library_loader.rs +++ b/tests/common/library_loader.rs @@ -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 { 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, diff --git a/tests/main.rs b/tests/main.rs index 477ebd2..86479fa 100755 --- a/tests/main.rs +++ b/tests/main.rs @@ -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;