From 03feed04bb8627465307b07aa68b26a691192a30 Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Thu, 21 Nov 2024 23:59:25 +0000 Subject: [PATCH] linter fixes --- programs/mango-v4/src/accounts_ix/perp_purge_position.rs | 1 - programs/mango-v4/src/instructions/perp_purge_position.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/mango-v4/src/accounts_ix/perp_purge_position.rs b/programs/mango-v4/src/accounts_ix/perp_purge_position.rs index ffc4982ce..a4122cd71 100644 --- a/programs/mango-v4/src/accounts_ix/perp_purge_position.rs +++ b/programs/mango-v4/src/accounts_ix/perp_purge_position.rs @@ -1,6 +1,5 @@ use anchor_lang::prelude::*; -use crate::error::*; use crate::state::*; #[derive(Accounts)] diff --git a/programs/mango-v4/src/instructions/perp_purge_position.rs b/programs/mango-v4/src/instructions/perp_purge_position.rs index 08ca98ccc..ebcd5210a 100644 --- a/programs/mango-v4/src/instructions/perp_purge_position.rs +++ b/programs/mango-v4/src/instructions/perp_purge_position.rs @@ -62,7 +62,7 @@ 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); + drop(*perp_position); account.fixed.perp_spot_transfers += settlement_i64; // Settle quote token balance