Fixes all clippy warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-01 18:20:16 +02:00
parent 717fcdefda
commit 0d95dcf618
19 changed files with 108 additions and 55 deletions

View File

@@ -61,6 +61,7 @@ impl<'own, 'library> Battle<'own, 'library> {
Ok(())
}
/// Executes a single choice.
fn execute_choice(&self, choice: &TurnChoice<'own, 'library>) -> PkmnResult<()> {
// A pass turn choice means the user does not intend to do anything. As such, return.
if let TurnChoice::Pass(..) = choice {
@@ -89,6 +90,7 @@ impl<'own, 'library> Battle<'own, 'library> {
Ok(())
}
/// Executes a move choice.
fn execute_move_choice<'func>(&'func self, choice: &'func TurnChoice<'own, 'library>) -> PkmnResult<()> {
let choice = choice.get_move_turn_data();
let used_move = choice.used_move();
@@ -145,6 +147,7 @@ impl<'own, 'library> Battle<'own, 'library> {
Ok(())
}
/// Executes a move turn choice on a single target.
fn handle_move_for_target(
&self,
executing_move: &mut ExecutingMove<'_, 'own, 'library>,