move local out of call (#17519)

This commit is contained in:
Jeff Washington (jwash) 2021-05-27 08:53:11 -05:00 committed by GitHub
parent dd3cf27ab0
commit 3973bf08f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -4224,13 +4224,10 @@ impl AccountsDb {
for sub_storages in storages {
for storage in sub_storages {
let slot = storage.slot();
let accounts = storage.accounts.accounts(0);
accounts.into_iter().for_each(|stored_account| {
scan_func(
LoadedAccount::Stored(stored_account),
&mut retval,
storage.slot(),
)
scan_func(LoadedAccount::Stored(stored_account), &mut retval, slot)
});
}
}