Skip to content

Commit

Permalink
And another.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Jan 19, 2024
1 parent 20db324 commit f6598f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lucidity-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fn job_inner(attr: TokenStream, item: TokenStream) -> TokenStream {

// Get argument helpers for `quote!`.

let closure_arguments = quote! { #(#arguments_names),* };
let call_arguments = quote! { #(#arguments_cloned_names),* };
let arguments_types_list = if arguments.is_empty() {
quote! { () }
Expand Down Expand Up @@ -549,7 +550,7 @@ fn job_inner(attr: TokenStream, item: TokenStream) -> TokenStream {

#config

let _ = lucidity::lunatic::Process::spawn_link_config(&config, (parent, #call_arguments), |(parent, #call_arguments), _: lucidity::lunatic::Mailbox<()>| {
let _ = lucidity::lunatic::Process::spawn_link_config(&config, (parent, #call_arguments), |(parent, #closure_arguments), _: lucidity::lunatic::Mailbox<()>| {

let result = #name(#call_arguments);

Expand Down

0 comments on commit f6598f7

Please sign in to comment.