Skip to content

Make Keyboard::new const fn #15

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

Closed
wants to merge 1 commit into from

Conversation

CharlyCst
Copy link

Keyboard::new can't be const because it's not const to drop generic values, but we can work around this limitation by simply not running destructors on the set and layout.
The drawback is that in the (unlikely) case where the user passes a type that needs to be dropped we might leak resources, maybe this is worth documenting?

@thejpster
Copy link
Member

Thank you for these changes. They were merged as part of #19

@thejpster thejpster closed this Aug 29, 2022
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