diff --git a/examples/macro/barrier/src/main.rs b/examples/macro/barrier/src/main.rs index 663a9da..bcf6d15 100644 --- a/examples/macro/barrier/src/main.rs +++ b/examples/macro/barrier/src/main.rs @@ -11,8 +11,13 @@ enum Event { #[state_machine(initial = "State::initializing()", state(derive(PartialEq, Eq, Debug)))] impl Foo { - #[state(superstate = "waiting_for_initialization", default("a", "b", "c"))] - fn initializing(a: &mut bool, b: &mut bool, c: &mut bool, event: &Event) -> Response { + #[state(superstate = "waiting_for_initialization")] + fn initializing( + #[default] a: &mut bool, + #[default] b: &mut bool, + #[default] c: &mut bool, + event: &Event, + ) -> Response { match event { Event::A => { *a = true; diff --git a/macro/src/analyze.rs b/macro/src/analyze.rs index 7e6fe09..343cf0f 100644 --- a/macro/src/analyze.rs +++ b/macro/src/analyze.rs @@ -445,13 +445,6 @@ pub fn analyze_state(method: &mut ImplItemMethod, state_machine: &StateMachine) } } } - Meta::List(list) if list.path.is_ident("default") => { - for item in list.nested { - if let NestedMeta::Lit(Lit::Str(value)) = item { - local_storage_default.push(Ident::new(&value.value(), value.span())); - } - } - } _ => abort!(meta, "unknown attribute"), } }