From e0091d6995e0ce659f3201fbb34eba122169ce38 Mon Sep 17 00:00:00 2001 From: Brooks Date: Thu, 5 Oct 2023 12:41:33 -0400 Subject: [PATCH] Removes unnecessary borrow (#33539) --- runtime/src/snapshot_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 74c9b2421f4c99..0cf1aab09daea2 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -1469,7 +1469,7 @@ pub fn build_storage_from_snapshot_dir( let accounts_hardlinks = bank_snapshot_dir.join(SNAPSHOT_ACCOUNTS_HARDLINKS); let account_run_paths: HashSet<_> = HashSet::from_iter(account_paths); - for dir_entry in fs_err::read_dir(&accounts_hardlinks)? { + for dir_entry in fs_err::read_dir(accounts_hardlinks)? { let symlink_path = dir_entry?.path(); // The symlink point to /snapshot/ which contain the account files hardlinks // The corresponding run path should be /run/