From 8e8d91d22a0a38d7c4bb58dadbd823dae601b345 Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Fri, 22 Nov 2024 23:20:06 +0000 Subject: [PATCH] remove unneeded drop --- programs/mango-v4/src/instructions/perp_purge_position.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/programs/mango-v4/src/instructions/perp_purge_position.rs b/programs/mango-v4/src/instructions/perp_purge_position.rs index ebcd5210a..a8cac19a7 100644 --- a/programs/mango-v4/src/instructions/perp_purge_position.rs +++ b/programs/mango-v4/src/instructions/perp_purge_position.rs @@ -62,7 +62,6 @@ pub fn perp_purge_position(ctx: Context) -> Result<()> { // Update the accounts' perp_spot_transfer statistics. let settlement_i64 = settlement.round_to_zero().to_num::(); perp_position.perp_spot_transfers += settlement_i64; - drop(*perp_position); account.fixed.perp_spot_transfers += settlement_i64; // Settle quote token balance