remove unnecessary lifetime (#30019)

This commit is contained in:
Jeff Washington (jwash) 2023-02-01 15:18:46 -06:00 committed by GitHub
parent e11c22a13c
commit 67d3beeb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3690,7 +3690,7 @@ impl AccountsDb {
/// unref and optionally store a reference to all pubkeys that are in the index, but dead in `unrefed_pubkeys`
/// return sum of account size for all alive accounts
fn load_accounts_index_for_shrink<'a, T: ShrinkCollectRefs<'a>>(
&'a self,
&self,
accounts: &'a [StoredAccountMeta<'a>],
stats: &ShrinkStats,
slot_to_shrink: Slot,
@ -3781,7 +3781,7 @@ impl AccountsDb {
/// shared code for shrinking normal slots and combining into ancient append vecs
/// note 'unique_accounts' is passed by ref so we can return references to data within it, avoiding self-references
pub(crate) fn shrink_collect<'a: 'b, 'b, T: ShrinkCollectRefs<'b>>(
&'a self,
&self,
store: &'a Arc<AccountStorageEntry>,
unique_accounts: &'b GetUniqueAccountsResult<'b>,
stats: &ShrinkStats,

View File

@ -1343,7 +1343,7 @@ impl<T: IndexValue> AccountsIndex<T> {
/// apply 'avoid_callback_result' if specified.
/// otherwise, call `callback`
pub(crate) fn scan<'a, F, I>(
&'a self,
&self,
pubkeys: I,
mut callback: F,
avoid_callback_result: Option<AccountsIndexScanResult>,