Finite state machines in rust; bendns fork to add types.
Diffstat (limited to 'rust-fsm-dsl/src/parser.rs')
| -rw-r--r-- | rust-fsm-dsl/src/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust-fsm-dsl/src/parser.rs b/rust-fsm-dsl/src/parser.rs index 696fa84..25a1283 100644 --- a/rust-fsm-dsl/src/parser.rs +++ b/rust-fsm-dsl/src/parser.rs @@ -24,9 +24,9 @@ impl Parse for Output { } } -impl Into<Option<Ident>> for Output { - fn into(self) -> Option<Ident> { - self.0 +impl From<Output> for Option<Ident> { + fn from(output: Output) -> Self { + output.0 } } |