korken89 / smlang-rs

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

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

Closed oblique closed 1 year ago

oblique commented 1 year 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