From 93233fcb303a6e83e30db52699c5cb1345ed97dc Mon Sep 17 00:00:00 2001 From: John Reed <87283488+JohnReedV@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:21:35 -1000 Subject: [PATCH] clippy --- pallets/subtensor/src/swap/swap_coldkey.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/swap/swap_coldkey.rs b/pallets/subtensor/src/swap/swap_coldkey.rs index 91bf04c08..bcbd2a330 100644 --- a/pallets/subtensor/src/swap/swap_coldkey.rs +++ b/pallets/subtensor/src/swap/swap_coldkey.rs @@ -50,7 +50,7 @@ impl Pallet { weight = weight.saturating_add(T::DbWeight::get().reads(1)); // 5. Swap the identity if the old coldkey has one - if let Some(identity) = Identities::::take(&old_coldkey) { + if let Some(identity) = Identities::::take(old_coldkey) { Identities::::insert(new_coldkey, identity); }