diff --git a/orchestra/proc-macro/src/parse/parse_orchestra_struct.rs b/orchestra/proc-macro/src/parse/parse_orchestra_struct.rs index 8a5c500..1728c45 100644 --- a/orchestra/proc-macro/src/parse/parse_orchestra_struct.rs +++ b/orchestra/proc-macro/src/parse/parse_orchestra_struct.rs @@ -510,7 +510,7 @@ impl<'a> SubsystemConfigSet<'a> { signal_channel_capacities_without_wip(&self.enabled_subsystems, default_capacity) } - pub(crate) fn can_receive_priority_messages_without_wip(&self) -> Vec { + pub(crate) fn can_receive_priority_messages_without_wip(&self) -> Vec { can_receive_priority_messages_without_wip(&self.enabled_subsystems) } } @@ -924,10 +924,10 @@ pub(crate) fn consumes_without_wip<'a, T: Borrow>(subsystems: &[T]) pub(crate) fn can_receive_priority_messages_without_wip( subsystems: &Vec<&SubSysField>, -) -> Vec { +) -> Vec { subsystems .iter() .filter(|ssf| !ssf.wip) - .map(|ssf| if syn::LitBool::new(ssf.can_receive_priority_messages, ssf.ident.span())) + .map(|ssf| syn::LitBool::new(ssf.can_receive_priority_messages, ssf.name.span())) .collect::>() }