fix(door): Ensure compatibility with updated FSM trait
This commit is contained in:
parent
e801b5853c
commit
42d56713bd
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ impl FSM for DoorState {
|
|||
// Additionally the `act` function can return new events. This is useful for
|
||||
// a sort of "callback-like" pattern (cause an action to fetch some data,
|
||||
// receive it as an event) but is not used in this example.
|
||||
fn act(action: DoorAction, _state: ()) -> Result<Vec<DoorEvent>, failure::Error> {
|
||||
fn act(action: DoorAction, _state: &()) -> Result<Vec<DoorEvent>, failure::Error> {
|
||||
match action {
|
||||
DoorAction::NotifyIRC(msg) => {
|
||||
use std::fs::OpenOptions;
|
||||
|
|
Loading…
Reference in a new issue