Skip to content

Commit

Permalink
refactor: remove unneeded .collect()
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
  • Loading branch information
aasseman committed Jan 15, 2024
1 parent 82ce7cc commit 73fb933
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions common/src/escrow_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ impl EscrowAccounts {
) -> Self {
let signers_to_senders = senders_to_signers
.iter()
.flat_map(|(sender, signers)| {
signers
.iter()
.map(move |signer| (*signer, *sender))
.collect::<Vec<_>>()
})
.flat_map(|(sender, signers)| signers.iter().map(move |signer| (*signer, *sender)))
.collect();

Self {
Expand Down

0 comments on commit 73fb933

Please sign in to comment.