Fix clippy issue
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2023-04-15 19:47:30 +02:00
parent d493a191a0
commit 1b8403ecda
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ impl BattleSide {
Some(pokemon) => old.replace(pokemon),
None => old.take(),
};
if let Some(old_pokemon) = old.clone() {
if let Some(old_pokemon) = old {
// We need to drop the lock before calling the hook, as it might try to access the
// side again.
drop(write_lock);