Skip to content

chore: move duplicate code to wrapping_container_to_tokens #1355

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

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

Conversation

CommanderStorm
Copy link

The change looks more messy in the diff than it is.

Previously, GenericType::Option, GenericType::Cow | GenericType::Box | GenericType::RefCell, GenericType::Arc, GenericType::Rc had nearly the same impl.
The only difference was rc in the panic => something which might be worth to sacrifice to have less code

This moves this impl to its own function instead of having the same code 3x.

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