Finite state machines in rust; bendns fork to add types.
remove the unnecessary Copy constraint
| -rw-r--r-- | rust_fsm_dsl/src/lib.rs | 2 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rust_fsm_dsl/src/lib.rs b/rust_fsm_dsl/src/lib.rs index cfa93b3..efa2b05 100644 --- a/rust_fsm_dsl/src/lib.rs +++ b/rust_fsm_dsl/src/lib.rs @@ -118,7 +118,7 @@ pub fn state_machine(tokens: TokenStream) -> TokenStream { let output = quote! { #visibility struct #struct_name; - #[derive(Clone, Copy, Debug, PartialEq)] + #[derive(Debug, PartialEq)] #visibility enum #states_enum_name { #(#states),* } @@ -121,7 +121,7 @@ pub trait StateMachineImpl { /// The input alphabet. type Input; /// The set of possible states. - type State: Copy; + type State; /// The output alphabet. type Output; /// The initial state of the machine. |