Skip to content

Commit

Permalink
fix(turbo-tasks-macros): Always use the correct trait method in TaskI…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
bgw committed Oct 4, 2024
1 parent 7474f10 commit c2bc0e1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
capture,
quote! {
{#(
#fields.is_resolved() &&
turbo_tasks::TaskInput::is_resolved(#fields) &&
)* true}
},
)
Expand All @@ -70,7 +70,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
capture,
quote! {
{#(
#fields.is_resolved() &&
turbo_tasks::TaskInput::is_resolved(#fields) &&
)* true}
},
)
Expand All @@ -85,7 +85,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
capture,
quote! {
{#(
#fields.is_transient() ||
turbo_tasks::TaskInput::is_transient(#fields) ||
)* false}
},
)
Expand All @@ -96,7 +96,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
capture,
quote! {
{#(
#fields.is_transient() ||
turbo_tasks::TaskInput::is_transient(#fields) ||
)* false}
},
)
Expand All @@ -112,7 +112,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
quote! {
{
#(
let #fields = #fields.resolve().await?;
let #fields = turbo_tasks::TaskInput::resolve(#fields).await?;
)*
Ok(#ident { #(#fields),* })
}
Expand All @@ -126,7 +126,7 @@ pub fn derive_task_input(input: TokenStream) -> TokenStream {
quote! {
{
#(
let #fields = #fields.resolve().await?;
let #fields = turbo_tasks::TaskInput::resolve(#fields).await?;
)*
Ok(#ident(#(#fields),*))
}
Expand Down

0 comments on commit c2bc0e1

Please sign in to comment.