korken89 / smlang-rs

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

Failed guards result in corrupt internal state #75

Closed ryan-summers closed 1 month ago

ryan-summers commented 1 month ago

During the changes in https://github.com/korken89/smlang-rs/pull/72, we are not properly restoring the state machine state if a guard fails. The state is take()n during processing, but is not reset upon guard errors.