korken89 / smlang-rs

A State Machine Language DSL procedual macro for Rust
Apache License 2.0
203 stars 28 forks source link

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

Closed oblique closed 2 years ago

oblique commented 2 years ago

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