Skip to content

Commit

Permalink
Removes unnecessary borrow (#33539)
Browse files Browse the repository at this point in the history
(cherry picked from commit e0091d6)
  • Loading branch information
brooksprumo authored and mergify[bot] committed Oct 5, 2023
1 parent 9318394 commit af89492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <account_path>/snapshot/<slot> which contain the account files hardlinks
// The corresponding run path should be <account_path>/run/
Expand Down

0 comments on commit af89492

Please sign in to comment.