add Debug to some structs (#30193)

This commit is contained in:
Jeff Washington (jwash) 2023-02-08 12:17:07 -06:00 committed by GitHub
parent 427bd62642
commit b4fe1280b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,7 @@ impl<'a> StoreTo<'a> {
}
}
#[derive(Default)]
#[derive(Default, Debug)]
/// hold alive accounts and bytes used by those accounts
/// alive means in the accounts index
pub(crate) struct AliveAccounts<'a> {
@ -185,6 +185,7 @@ pub(crate) struct AliveAccounts<'a> {
}
/// separate pubkeys into those with a single refcount and those with > 1 refcount
#[derive(Debug)]
pub(crate) struct ShrinkCollectAliveSeparatedByRefs<'a> {
pub(crate) one_ref: AliveAccounts<'a>,
pub(crate) many_refs: AliveAccounts<'a>,
@ -428,6 +429,7 @@ impl AncientSlotPubkeys {
}
}
#[derive(Debug)]
pub(crate) struct ShrinkCollect<'a, T: ShrinkCollectRefs<'a>> {
pub(crate) slot: Slot,
pub(crate) capacity: u64,