From 1b8403ecda0bdc909ea40be89fd78aae5adf210d Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 15 Apr 2023 19:47:30 +0200 Subject: [PATCH] Fix clippy issue --- src/dynamic_data/models/battle_side.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynamic_data/models/battle_side.rs b/src/dynamic_data/models/battle_side.rs index 1e10e54..2c23f29 100755 --- a/src/dynamic_data/models/battle_side.rs +++ b/src/dynamic_data/models/battle_side.rs @@ -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);