about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--finito-door/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/finito-door/src/lib.rs b/finito-door/src/lib.rs
index 2066ed81e42b..68542c0bc448 100644
--- a/finito-door/src/lib.rs
+++ b/finito-door/src/lib.rs
@@ -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;