You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "`NextState::set_if_neq` renamed to `set_if_different`"
3
+
pull_requests: [24676]
4
+
---
5
+
6
+
`NextState::set_if_neq` and related methods and enum variants have been renamed to avoid naming conflicts with `Mut::set_if_neq` / `ReflectMut::set_if_neq` which have a different meaning.
7
+
8
+
The following names have changed:
9
+
10
+
-`NextState::set_if_neq` is now `NextState::set_if_different`
11
+
-`NextState::PendingIfNeq` is now `NextState::PendingIfDifferent`
12
+
-`CommandsStatesExt::set_state_if_neq` is now `CommandsStatesExt::set_state_if_different`
13
+
-`ReflectFreelyMutableState::set_next_state_if_neq` is now `ReflectFreelyMutableState::set_next_state_if_different`
14
+
-`ReflectFreelyMutableStateFns::set_next_state_if_neq` is now `ReflectFreelyMutableStateFns::set_next_state_if_different`
15
+
16
+
Deprecated compatibility wrappers have been added for the renamed methods (`NextState::set_if_neq`, `CommandsStatesExt::set_state_if_neq`, and `ReflectFreelyMutableState::set_next_state_if_neq`) to allow existing code to compile with deprecation warnings.
/// Tentatively set a pending state transition to a reflected [`ReflectFreelyMutableState`], skipping state transitions if the target state is the same as the current state.
/// Tentatively set a pending state transition to a reflected [`ReflectFreelyMutableState`], skipping state transitions if the target state is the same as the current state.
0 commit comments