Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto committed Oct 3, 2024
1 parent b8a05a7 commit b0cb50d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lang/attribute/program/src/declare_program/mods/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ fn gen_internal_accounts_common(
accs.iter()
.flat_map(|acc| match acc {
IdlInstructionAccountItem::Composite(accs)
if idl
if !idl
.instructions
.iter()
.find(|ix| ix.accounts == accs.accounts)
.is_none() =>
.any(|ix| ix.accounts == accs.accounts) =>
{
let mut non_ix_composite_accs =
get_non_instruction_composite_accounts(&accs.accounts, idl);
Expand Down

0 comments on commit b0cb50d

Please sign in to comment.