From d35b78bc2803c835e58b1f4431a252adede9c98c Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Wed, 14 Jun 2023 16:47:55 -0700 Subject: [PATCH] fix clippy errors --- runtime/src/bank.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index ce929e03f060c1..7ab60ac8c78d34 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -5064,7 +5064,7 @@ impl Bank { ); } } - return ProgramAccountLoadResult::InvalidAccountData; + ProgramAccountLoadResult::InvalidAccountData } pub fn load_program(&self, pubkey: &Pubkey) -> Arc { @@ -5095,7 +5095,7 @@ impl Bank { &self.feature_set, None, &mut load_program_metrics, - program_account.data().as_ref(), + program_account.data(), program_account.owner(), program_account.data().len(), 0,