From 3f3eca0bc99685f5827f979a3205249594d0ffaf Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Wed, 20 Nov 2024 02:14:21 +0000 Subject: [PATCH] fix clippy issuess --- programs/mango-v4/src/instructions/perp_prune_orders.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/mango-v4/src/instructions/perp_prune_orders.rs b/programs/mango-v4/src/instructions/perp_prune_orders.rs index 1ffcb7f30..6219eb105 100644 --- a/programs/mango-v4/src/instructions/perp_prune_orders.rs +++ b/programs/mango-v4/src/instructions/perp_prune_orders.rs @@ -16,8 +16,8 @@ pub fn perp_prune_orders(ctx: Context, limit: u8) -> Result<()> }; book.cancel_all_orders( - account, - &ctx.accounts.account.key(), + &mut account.borrow_mut(), + ctx.accounts.account.as_ref().key, &mut perp_market, limit, None,