Fix clippy issue
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d493a191a0
commit
1b8403ecda
|
@ -188,7 +188,7 @@ impl BattleSide {
|
||||||
Some(pokemon) => old.replace(pokemon),
|
Some(pokemon) => old.replace(pokemon),
|
||||||
None => old.take(),
|
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
|
// We need to drop the lock before calling the hook, as it might try to access the
|
||||||
// side again.
|
// side again.
|
||||||
drop(write_lock);
|
drop(write_lock);
|
||||||
|
|
Loading…
Reference in New Issue