Removes `#[allow(dead_code)]` in StorableAccounts impl (#33821)

This commit is contained in:
Brooks 2023-10-24 14:31:27 -04:00 committed by GitHub
parent 9064b8b2a2
commit abf51864b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -106,7 +106,6 @@ impl<'a, T: ReadableAccount + Sync> StorableAccounts<'a, T> for (Slot, &'a [(&'a
}
}
#[allow(dead_code)]
impl<'a, T: ReadableAccount + Sync> StorableAccounts<'a, T> for (Slot, &'a [&'a (Pubkey, T)]) {
fn pubkey(&self, index: usize) -> &Pubkey {
&self.1[index].0
@ -172,7 +171,6 @@ pub struct StorableAccountsBySlot<'a> {
}
impl<'a> StorableAccountsBySlot<'a> {
#[allow(dead_code)]
/// each element of slots_and_accounts is (source slot, accounts moving FROM source slot)
pub fn new(
target_slot: Slot,