diff --git a/CHANGELOG.md b/CHANGELOG.md index d3bad72..14bba70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -* None yet! +### Added + +- Add support for defining States and Events attributes using `states_attr` and `events_attr` fields + +### Changed + +- [breaking] Remove `derive_states` and `derive_events` fields in lieu of `states_attr` and `events_attr` to define attributes generically ## [v0.8.0] - 2024-08-07 diff --git a/macros/src/parser/state_machine.rs b/macros/src/parser/state_machine.rs index 5aa6edd..48a5f01 100644 --- a/macros/src/parser/state_machine.rs +++ b/macros/src/parser/state_machine.rs @@ -109,12 +109,12 @@ impl parse::Parse for StateMachine { "states_attr" => { input.parse::()?; - statemachine.states_attr = Attribute::parse_outer(&input)?; + statemachine.states_attr = Attribute::parse_outer(input)?; } "events_attr" => { input.parse::()?; - statemachine.events_attr = Attribute::parse_outer(&input)?; + statemachine.events_attr = Attribute::parse_outer(input)?; } keyword => {