Fixes all clippy warnings
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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user