Skip to content

Commit

Permalink
Fix clippy warning, add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhpreet committed Aug 19, 2024
1 parent 8a6b893 commit 3986251
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions macros/src/parser/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ impl parse::Parse for StateMachine {

"states_attr" => {
input.parse::<Token![:]>()?;
statemachine.states_attr = Attribute::parse_outer(&input)?;
statemachine.states_attr = Attribute::parse_outer(input)?;
}

"events_attr" => {
input.parse::<Token![:]>()?;
statemachine.events_attr = Attribute::parse_outer(&input)?;
statemachine.events_attr = Attribute::parse_outer(input)?;
}

keyword => {
Expand Down

0 comments on commit 3986251

Please sign in to comment.