diff --git a/statig/src/blocking/inner.rs b/statig/src/blocking/inner.rs index a1cfcd9..3d3ada1 100644 --- a/statig/src/blocking/inner.rs +++ b/statig/src/blocking/inner.rs @@ -39,7 +39,7 @@ where /// Transition from the current state to the given target state. pub(crate) fn transition(&mut self, mut target: M::State, context: &mut M::Context<'_>) { - M::before_transition(&mut self.shared_storage, &target, &self.state, context); + M::before_transition(&mut self.shared_storage, &self.state, &target, context); // Get the transition path we need to perform from one state to the next. let (exit_levels, enter_levels) = self.state.transition_path(&mut target);