From abf51864b4f6899b1f82919e19b9fb03d4588375 Mon Sep 17 00:00:00 2001 From: Brooks Date: Tue, 24 Oct 2023 14:31:27 -0400 Subject: [PATCH] Removes `#[allow(dead_code)]` in StorableAccounts impl (#33821) --- accounts-db/src/storable_accounts.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/accounts-db/src/storable_accounts.rs b/accounts-db/src/storable_accounts.rs index 7fbd31ee7..1527d7c1a 100644 --- a/accounts-db/src/storable_accounts.rs +++ b/accounts-db/src/storable_accounts.rs @@ -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,