AcctIdx: remove auto Debug trait (#19905)

This commit is contained in:
Jeff Washington (jwash)
2021-09-15 09:54:16 -05:00
committed by GitHub
parent fb0c590090
commit b467e7fb3b
3 changed files with 21 additions and 3 deletions

View File

@@ -15,7 +15,6 @@ use std::ops::RangeBounds;
type K = Pubkey;
// one instance of this represents one bin of the accounts index.
#[derive(Debug)]
pub struct InMemAccountsIndex<T: IndexValue> {
// backing store
map_internal: RwLock<HashMap<Pubkey, AccountMapEntry<T>>>,
@@ -23,6 +22,12 @@ pub struct InMemAccountsIndex<T: IndexValue> {
bin: usize,
}
impl<T: IndexValue> Debug for InMemAccountsIndex<T> {
fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Ok(())
}
}
impl<T: IndexValue> InMemAccountsIndex<T> {
pub fn new(storage: &AccountsIndexStorage<T>, bin: usize) -> Self {
Self {