remove superfluous collect()s

This commit is contained in:
Trent Nelson
2021-08-03 16:14:34 -06:00
committed by mergify[bot]
parent 79b4b83d3c
commit 06a7a9e544
3 changed files with 16 additions and 33 deletions

View File

@ -304,8 +304,8 @@ fn make_create_message(
instructions
})
.flatten()
.collect();
let instructions: Vec<_> = instructions.into_iter().flatten().collect();
Message::new(&instructions, Some(&keypair.pubkey()))
}