turbofish-org / orga

Deterministic state machine engine written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

derive(State) doesn't support structs with generic parameters

mappum opened this issue · comments

This will currently fail:

#[state]
struct Foo<S: State, T: Encode + Decode> {
  bar: Deque<T>
}

because the emitted State impl does not include the T: Encode + Decode type parameter.

This should be easy to fix, just copy any type parameters into the State impl.