add Debug trait to T in AccountsIndex (#18702)

This commit is contained in:
Jeff Washington (jwash)
2021-07-16 17:05:23 -05:00
committed by GitHub
parent 74539020b4
commit 181f21529d

View File

@ -17,6 +17,7 @@ use std::{
btree_map::{self, BTreeMap, Entry}, btree_map::{self, BTreeMap, Entry},
HashSet, HashSet,
}, },
fmt::Debug,
ops::{ ops::{
Bound, Bound,
Bound::{Excluded, Included, Unbounded}, Bound::{Excluded, Included, Unbounded},
@ -675,8 +676,9 @@ impl<T> Default for AccountsIndex<T> {
} }
} }
impl<T: 'static + Clone + IsCached + ZeroLamport + std::marker::Sync + std::marker::Send> impl<
AccountsIndex<T> T: 'static + Clone + IsCached + ZeroLamport + std::marker::Sync + std::marker::Send + Debug,
> AccountsIndex<T>
{ {
fn iter<R>(&self, range: Option<R>) -> AccountsIndexIterator<T> fn iter<R>(&self, range: Option<R>) -> AccountsIndexIterator<T>
where where