diff --git a/src/c1_state_machine/p1_switches.rs b/src/c1_state_machine/p1_switches.rs index 754012f..ae70ec6 100644 --- a/src/c1_state_machine/p1_switches.rs +++ b/src/c1_state_machine/p1_switches.rs @@ -15,7 +15,7 @@ impl StateMachine for LightSwitch { type Transition = (); fn next_state(starting_state: &bool, _: &()) -> bool { - !starting_state + !*starting_state } }