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 working Debug impl for caching session #1161

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

athre0z
Copy link

@athre0z athre0z commented Dec 28, 2024

The previous derived implementation was not actually usable because it had Debug bounds on the type parameters. The RandomState default value for the S argument does not impl Debug, so this didn't work.

This commit switches to a manual Debug impl that doesn't have these unnecessary bounds.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

Copy link

github-actions bot commented Dec 28, 2024

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: dc2e939

The previous derived implementation was not actually usable because
it had `Debug` bounds on the type parameters. The `RandomState` default
value for the `S` argument does not impl `Debug`, so this didn't work.

This commit switches to a manual `Debug` impl that doesn't have these
unnecessary bounds.
@athre0z athre0z force-pushed the caching-session-debug-impl branch from c5a8fcc to dc2e939 Compare December 28, 2024 14:41
Copy link
Collaborator

@wprzytula wprzytula left a comment

Choose a reason for hiding this comment

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

Thank you very much for the contribution, @athre0z !

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