derive(State) doesn't support structs with generic parameters
mappum opened this issue · comments
Matt Bell commented
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.