Cleanup to resolve all warnings when unit testing.
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:
@@ -7,6 +7,7 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(not(test))]
|
||||
use alloc::boxed::Box;
|
||||
#[cfg(not(test))]
|
||||
use pkmn_lib_interface::set_load_script_fn;
|
||||
|
||||
@@ -44,7 +44,7 @@ mod tests {
|
||||
use super::*;
|
||||
use alloc::rc::Rc;
|
||||
use pkmn_lib_interface::app_interface::{
|
||||
MockBattle, MockBattleRandom, MockExecutingMove, MockHitData, MockItem, MockPokemon,
|
||||
MockBattle, MockBattleRandom, MockExecutingMove, MockHitData, MockPokemon,
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -3,9 +3,8 @@ use alloc::boxed::Box;
|
||||
use core::any::Any;
|
||||
use core::sync::atomic::{AtomicBool, Ordering};
|
||||
use pkmn_lib_interface::app_interface::{
|
||||
BattleSide, DamageSource, ExecutingMove, Pokemon, TurnChoice, WithVolatile,
|
||||
BattleSide, DamageSource, ExecutingMove, Pokemon, TurnChoice,
|
||||
};
|
||||
use pkmn_lib_interface::handling::script::ScriptOwner;
|
||||
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
|
||||
|
||||
script!(Assurance, "assurance");
|
||||
|
||||
@@ -5,7 +5,7 @@ use crate::weather::hail::Hail;
|
||||
use alloc::boxed::Box;
|
||||
use core::any::Any;
|
||||
use core::sync::atomic::{AtomicU32, Ordering};
|
||||
use pkmn_lib_interface::app_interface::{ExecutingMove, MoveCategory, Pokemon, WithVolatile};
|
||||
use pkmn_lib_interface::app_interface::{ExecutingMove, MoveCategory, Pokemon};
|
||||
use pkmn_lib_interface::handling::ScriptCapabilities::OnEndTurn;
|
||||
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user