Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiEres committed Jun 5, 2024
1 parent 2d4e4e7 commit c172ccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchestra/proc-macro/src/parse/parse_orchestra_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TokenStream> {
pub(crate) fn can_receive_priority_messages_without_wip(&self) -> Vec<syn::LitBool> {
can_receive_priority_messages_without_wip(&self.enabled_subsystems)
}
}
Expand Down Expand Up @@ -924,10 +924,10 @@ pub(crate) fn consumes_without_wip<'a, T: Borrow<SubSysField>>(subsystems: &[T])

pub(crate) fn can_receive_priority_messages_without_wip(
subsystems: &Vec<&SubSysField>,
) -> Vec<TokenStream> {
) -> Vec<syn::LitBool> {
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::<Vec<_>>()
}

0 comments on commit c172ccc

Please sign in to comment.