From daa4c9d5da0242146fdda896df04612ad68daf83 Mon Sep 17 00:00:00 2001 From: brooks Date: Fri, 17 Nov 2023 14:23:43 -0500 Subject: [PATCH] clippy: Replaces .get(0) with .first() --- programs/sbf/tests/programs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/sbf/tests/programs.rs b/programs/sbf/tests/programs.rs index 665109c16d7097..5dedca0f5bec1a 100644 --- a/programs/sbf/tests/programs.rs +++ b/programs/sbf/tests/programs.rs @@ -97,7 +97,7 @@ fn process_transaction_and_record_inner( Vec>, Vec, ) { - 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