Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider committed Nov 21, 2024
1 parent 8ee331a commit 03feed0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion programs/mango-v4/src/accounts_ix/perp_purge_position.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use anchor_lang::prelude::*;

use crate::error::*;
use crate::state::*;

#[derive(Accounts)]
Expand Down
2 changes: 1 addition & 1 deletion programs/mango-v4/src/instructions/perp_purge_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn perp_purge_position(ctx: Context<PerpPurgePosition>) -> Result<()> {
// Update the accounts' perp_spot_transfer statistics.
let settlement_i64 = settlement.round_to_zero().to_num::<i64>();
perp_position.perp_spot_transfers += settlement_i64;
drop(perp_position);
drop(*perp_position);
account.fixed.perp_spot_transfers += settlement_i64;

// Settle quote token balance
Expand Down

0 comments on commit 03feed0

Please sign in to comment.