mdeloof / statig

Hierarchical state machines for designing event-driven systems
https://crates.io/crates/statig
MIT License
560 stars 18 forks source link

Error #9

Closed conikeec closed 1 year ago

conikeec commented 1 year ago

Hi

I am attempting to run the example (https://github.com/mdeloof/statig/tree/main/examples/macro/basic) as an independent project and receiving this error . Am I missing anything?

Compiling machine v0.1.0 (/Users/chetanconikee/pgithub/machine)
error[E0599]: no method named `uninitialized_state_machine` found for struct `Blinky` in the current scope
  --> src/main.rs:40:43
   |
7  | pub struct Blinky {
   | ----------------- method `uninitialized_state_machine` not found for this struct
...
40 |     let state_machine = Blinky::default().uninitialized_state_machine();
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Blinky`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `machine` due to previous error
conikeec commented 1 year ago

Resolved ..