File tree Expand file tree Collapse file tree 7 files changed +9
-10
lines changed
test-programs/primary/src Expand file tree Collapse file tree 7 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11SHELL := /usr/bin/env bash
2- NIGHTLY_TOOLCHAIN := nightly-2024-11-22
2+ NIGHTLY_TOOLCHAIN := nightly-2025-10-07
33SOLANA_VERSION := 3.0.0
44
55.PHONY : audit build-test-programs prepublish publish format format-check \
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ Solana CLI Version: {}
9393 )
9494}
9595
96- fn parse_last_md_table ( content : & str ) -> Vec < MolluskComputeUnitBenchResult > {
96+ fn parse_last_md_table ( content : & str ) -> Vec < MolluskComputeUnitBenchResult < ' _ > > {
9797 let mut results = vec ! [ ] ;
9898
9999 for line in content. lines ( ) . skip ( 6 ) {
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ pub fn create_mock_epoch_stake(target_total: u64) -> EpochStake {
2020 let base_stake = target_total / num_accounts;
2121 let remainder = target_total % num_accounts;
2222
23- std:: iter:: repeat ( base_stake)
24- . take ( num_accounts as usize - 1 )
23+ std:: iter:: repeat_n ( base_stake, num_accounts as usize - 1 )
2524 . chain ( std:: iter:: once ( base_stake + remainder) )
2625 . for_each ( |stake| {
2726 epoch_stake. insert ( Pubkey :: new_unique ( ) , stake) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl ProgramCache {
8484 me
8585 }
8686
87- pub ( crate ) fn cache ( & self ) -> RefMut < ProgramCacheForTxBatch > {
87+ pub ( crate ) fn cache ( & self ) -> RefMut < ' _ , ProgramCacheForTxBatch > {
8888 self . cache . borrow_mut ( )
8989 }
9090
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ fn test_transfer() {
152152 ] ,
153153 & [
154154 Check :: success ( ) ,
155- Check :: compute_units ( 2533 ) ,
155+ Check :: compute_units ( 2534 ) ,
156156 Check :: account ( & payer)
157157 . lamports ( payer_lamports - transfer_amount)
158158 . build ( ) ,
@@ -256,7 +256,7 @@ fn test_close_account() {
256256 ] ,
257257 & [
258258 Check :: success ( ) ,
259- Check :: compute_units ( 2608 ) ,
259+ Check :: compute_units ( 2609 ) ,
260260 Check :: account ( & key)
261261 . closed ( ) // The rest is unnecessary, just testing.
262262 . data ( & [ ] )
@@ -376,7 +376,7 @@ fn test_cpi() {
376376 ] ,
377377 & [
378378 Check :: success ( ) ,
379- Check :: compute_units ( 2418 ) ,
379+ Check :: compute_units ( 2371 ) ,
380380 Check :: account ( & key)
381381 . data ( data)
382382 . lamports ( lamports)
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ impl<'a> Check<'a> {
7171 }
7272
7373 /// Check a resulting account after executing the instruction.
74- pub fn account ( pubkey : & Pubkey ) -> AccountCheckBuilder {
74+ pub fn account ( pubkey : & Pubkey ) -> AccountCheckBuilder < ' _ > {
7575 AccountCheckBuilder :: new ( pubkey)
7676 }
7777
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ fn process_instruction(
9595 vec ! [ AccountMeta :: new( * account_info. key, true ) ] ,
9696 ) ;
9797
98- invoke ( & instruction, & [ account_info . clone ( ) ] ) ?;
98+ invoke ( & instruction, std :: slice :: from_ref ( account_info ) ) ?;
9999 }
100100 Some ( ( 5 , _) ) => {
101101 // Load the same account twice and assert both infos share the
You can’t perform that action at this time.
0 commit comments