Skip to content

Commit

Permalink
fix(compilation): Remove warnings of unused & mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillaumat committed Jan 27, 2023
1 parent 9d25078 commit 92fb21a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/squads-mpl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<MsAuth>, setting: bool) -> Result<()> {
let ms = &mut ctx.accounts.multisig;
pub fn set_external_execute(ctx: Context<MsAuth>, _setting: bool) -> Result<()> {
let _ms = &mut ctx.accounts.multisig;
// ms.allow_external_execute = setting; // no op
Ok(())
}
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 92fb21a

Please # to comment.