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