Finite state machines in rust; bendns fork to add types.
rust_fsm: fix formatting
Yevhenii Babichenko 2019-05-23
parent 08093cd · commit e7a5938
-rw-r--r--src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 16b189a..cf47bec 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -155,9 +155,7 @@ where
/// Create a new instance of this wrapper which encapsulates the given
/// state.
pub fn from_state(state: T::State) -> Self {
- Self {
- state
- }
+ Self { state }
}
/// Consumes the provided input, gives an output and performs a state