Skip to content

Commit

Permalink
clippy: Replaces .get(0) with .first() (solana-labs#34150)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 17, 2023
1 parent 8c8cd66 commit c585e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c585e54

Please sign in to comment.