diff --git a/automata/src/transition.rs b/automata/src/transition.rs index ee600ab..51aa9ed 100644 --- a/automata/src/transition.rs +++ b/automata/src/transition.rs @@ -30,7 +30,7 @@ pub enum Transition> { /// Call (and require a successful run from) this state before continuing. detour: C, /// After the call has succeeded, go to this state. - dst: C, + dst: Box, /// Combine the cached results and the results of the called parser with this function. combine: FF, },