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

Implement Default on interners for all backends #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hawk777
Copy link

@Hawk777 Hawk777 commented Dec 31, 2024

It’s useful to have Default implemented for StringInterner for all backends, not just DefaultBackend, so that structs containing such interners can derive(Default) rather than having to implement it by hand. However, as can be seen in the changes to the doctests, this is not actually backwards compatible, because StringInterner::default() now requires types to be provided, so you may or may not consider it worth a semver break; feel free to just close this if you don’t want to do that, I don’t mind.

It’s useful to have `Default` implemented for `StringInterner` for all
backends, not just `DefaultBackend`.
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.

1 participant