clippy: Replaces .get(0) with .first() (#34150)

This commit is contained in:
Brooks 2023-11-17 18:29:36 -05:00 committed by GitHub
parent 8c8cd66095
commit c585e54988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ fn process_transaction_and_record_inner(
Vec<Vec<InnerInstruction>>,
Vec<String>,
) {
let signature = tx.signatures.get(0).unwrap().clone();
let signature = tx.signatures.first().unwrap().clone();
let txs = vec![tx];
let tx_batch = bank.prepare_batch_for_tests(txs);
let mut results = bank