Skip to content

Commit

Permalink
Removes #[allow(dead_code)] in StorableAccounts impl (solana-labs#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 24, 2023
1 parent 9064b8b commit abf5186
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions accounts-db/src/storable_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit abf5186

Please sign in to comment.