Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alternate debug output for listing items in the slab #108

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

csnover
Copy link
Contributor

@csnover csnover commented Aug 8, 2021

When debugging output of items in a slab (particularly when a slab is nested in another object that can otherwise just #[derive(Debug)]), I usually want to see the actual content of the items in the slab, not just its used size and capacity.

I made an assumption that the original debug output was intentionally not written to show items, so I added an alternate output instead of replacing the existing implementation. If this is not desired I can update this PR with one that replaces the existing implementation so items are always shown.

Let me know if you have questions. Thanks!

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit b68a2ac into tokio-rs:master Aug 8, 2021
@Darksonn Darksonn mentioned this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants