From 92fb21aa67b05c7a227069025edb0bc75aee5857 Mon Sep 17 00:00:00 2001 From: bguillaumat Date: Fri, 27 Jan 2023 16:07:00 +0100 Subject: [PATCH] fix(compilation): Remove warnings of unused & mutability --- programs/squads-mpl/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/squads-mpl/src/lib.rs b/programs/squads-mpl/src/lib.rs index 5802e8d..e5421ae 100644 --- a/programs/squads-mpl/src/lib.rs +++ b/programs/squads-mpl/src/lib.rs @@ -212,8 +212,8 @@ pub mod squads_mpl { // deprecated! constraint has been removed in favor of the roles program // instruction to change the external execute setting, which allows // non-members or programs to execute a transaction. - pub fn set_external_execute(ctx: Context, setting: bool) -> Result<()> { - let ms = &mut ctx.accounts.multisig; + pub fn set_external_execute(ctx: Context, _setting: bool) -> Result<()> { + let _ms = &mut ctx.accounts.multisig; // ms.allow_external_execute = setting; // no op Ok(()) } @@ -421,7 +421,7 @@ pub mod squads_mpl { // deserialize the msIx let mut ix_account_data: &[u8] = &ms_ix_account.try_borrow_mut_data()?; - let mut ms_ix: MsInstruction = MsInstruction::try_deserialize(&mut ix_account_data)?; + let ms_ix: MsInstruction = MsInstruction::try_deserialize(&mut ix_account_data)?; // get the instruction account pda - seeded from transaction account + the transaction accounts instruction index let (ix_pda, _) = Pubkey::find_program_address(