File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " nightly "
2+ channel = " 1.86 "
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ use crate::trident_svm::TridentSVM;
33
44impl TridentSVM {
55 pub fn increment_transaction_execution ( & mut self , transaction : String ) {
6- match & mut self . fuzz_stats {
7- Some ( shmem) => {
8- let stats = unsafe { & mut * ( shmem. as_ptr ( ) as * mut FuzzStats ) } ;
9- stats. increment_executions ( & transaction) ;
10- }
11- None => { }
6+ if let Some ( shmem) = & mut self . fuzz_stats {
7+ let stats = unsafe { & mut * ( shmem. as_ptr ( ) as * mut FuzzStats ) } ;
8+ stats. increment_executions ( & transaction) ;
129 }
1310 }
1411 pub fn increment_transaction_success ( & mut self , transaction : String ) {
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ impl TridentSVM {
2323 & mut self ,
2424 transaction : Transaction ,
2525 ) -> LoadAndExecuteSanitizedTransactionsOutput {
26- let mut tx_processing_environment = TransactionProcessingEnvironment :: default ( ) ;
27-
28- tx_processing_environment. feature_set = self . feature_set . clone ( ) ;
26+ let tx_processing_environment = TransactionProcessingEnvironment :: < ' _ > {
27+ feature_set : self . feature_set . clone ( ) ,
28+ ..Default :: default ( )
29+ } ;
2930
3031 let tx_processing_config = TransactionProcessingConfig {
3132 compute_budget : Some ( ComputeBudget :: default ( ) ) ,
You can’t perform that action at this time.
0 commit comments