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

Make StateMachine::new and StateMachine::new_with_state const functions #56

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

oblique
Copy link
Contributor

@oblique oblique commented Nov 2, 2022

StateMachine::new and StateMachine::new_with_state are just filling the struct without calling any function, so they can became const functions to ease construction.

Closes #45

ryan-summers
ryan-summers previously approved these changes Nov 3, 2022
@ryan-summers ryan-summers merged commit a8e60a9 into korken89:master Nov 3, 2022
@oblique oblique deleted the const-new branch November 3, 2022 13:12
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.

Why is the StateMachine::new not a const function?
2 participants