about summary refs log tree commit diff
path: root/finito-door/src/lib.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-12-13T14·08+0100
committerVincent Ambo <mail@tazj.in>2018-12-13T14·08+0100
commit42d56713bd6bbaf213cac37ff85fb1c64188fec5 (patch)
tree2aa16e9ce2f543d8d1bfba9efa2d55734c53c43f /finito-door/src/lib.rs
parente801b5853c1d06d1dc5cb43eadba0069b7e6fa85 (diff)
fix(door): Ensure compatibility with updated FSM trait
Diffstat (limited to 'finito-door/src/lib.rs')
-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;