From 96de58b3a4b12710f67b08c88a594486079c3457 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 3 Jun 2021 22:26:31 +0000 Subject: [PATCH] reduce copy (#17672) (#17688) (cherry picked from commit d802eb303cdebd4a08130bd72e9c9d94cc3371e9) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- runtime/src/accounts_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 4aa1abdaf1..fa159aa0e2 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4312,7 +4312,7 @@ impl AccountsDb { |loaded_account: LoadedAccount, accum: &mut Vec>, slot: Slot| { - let pubkey = *loaded_account.pubkey(); + let pubkey = loaded_account.pubkey(); let pubkey_to_bin_index = pubkey.as_ref()[0] as usize * bins / max_plus_1; if !bin_range.contains(&pubkey_to_bin_index) { return; @@ -4332,7 +4332,7 @@ impl AccountsDb { loaded_account.loaded_hash(), balance, slot, - pubkey, + *pubkey, ); if check_hash {