Finite state machines in rust; bendns fork to add types.
Diffstat (limited to 'rust_fsm/src/machine.rs')
-rw-r--r--rust_fsm/src/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust_fsm/src/machine.rs b/rust_fsm/src/machine.rs
index a38f7eb..c5f3a32 100644
--- a/rust_fsm/src/machine.rs
+++ b/rust_fsm/src/machine.rs
@@ -6,7 +6,7 @@ pub trait StateMachine {
/// The input alphabet.
type Input;
/// The set of possible states.
- type State;
+ type State: Copy;
/// The output alphabet.
type Output;
/// The initial state of the machine.