From c585e549883cacd543e10af244b570e79f62956e Mon Sep 17 00:00:00 2001 From: Brooks Date: Fri, 17 Nov 2023 18:29:36 -0500 Subject: [PATCH] clippy: Replaces .get(0) with .first() (#34150) --- 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