From c937ecf820e602dd2cacff4657236981fc65e31a Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 16 May 2023 15:58:00 -0700 Subject: [PATCH] apply clippy suggestions --- runtime/src/bank.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 0c21325f5c0d6f..9a23c4392cdaab 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -320,8 +320,8 @@ pub struct TransactionExecutionDetails { pub enum TransactionExecutionResult { Executed { details: TransactionExecutionDetails, - programs_modified_by_tx: LoadedProgramsForTxBatch, - programs_updated_only_for_global_cache: LoadedProgramsForTxBatch, + programs_modified_by_tx: Box, + programs_updated_only_for_global_cache: Box, }, NotExecuted(TransactionError), } @@ -4380,8 +4380,10 @@ impl Bank { executed_units, accounts_data_len_delta, }, - programs_modified_by_tx, - programs_updated_only_for_global_cache, + programs_modified_by_tx: Box::new(programs_modified_by_tx), + programs_updated_only_for_global_cache: Box::new( + programs_updated_only_for_global_cache, + ), } } @@ -4615,7 +4617,7 @@ impl Bank { if details.status.is_ok() { programs_loaded_for_tx_batch .borrow_mut() - .merge(&programs_modified_by_tx); + .merge(programs_modified_by_tx); } }