From b07e34d3bd7c665094679817ebf48b4d6e9bb81d Mon Sep 17 00:00:00 2001 From: radik878 Date: Tue, 20 Jan 2026 14:04:32 +0200 Subject: [PATCH] svm: remove redundant runtime environment clone --- svm/src/program_loader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svm/src/program_loader.rs b/svm/src/program_loader.rs index f37861f976d888..cf9f1ec7242811 100644 --- a/svm/src/program_loader.rs +++ b/svm/src/program_loader.rs @@ -40,7 +40,7 @@ pub(crate) fn load_program_from_bytes( unsafe { ProgramCacheEntry::reload( loader_key, - program_runtime_environment.clone(), + program_runtime_environment, deployment_slot, deployment_slot.saturating_add(DELAY_VISIBILITY_SLOT_OFFSET), programdata, @@ -51,7 +51,7 @@ pub(crate) fn load_program_from_bytes( } else { ProgramCacheEntry::new( loader_key, - program_runtime_environment.clone(), + program_runtime_environment, deployment_slot, deployment_slot.saturating_add(DELAY_VISIBILITY_SLOT_OFFSET), programdata,