Finite state machines in rust; bendns fork to add types.
remove the unnecessary Copy constraint
Yevhenii Babichenko 2020-03-14
parent e7a5938 · commit b77907c
-rw-r--r--rust_fsm_dsl/src/lib.rs2
-rw-r--r--src/lib.rs2
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),*
}
diff --git a/src/lib.rs b/src/lib.rs
index cf47bec..2a62405 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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.