Skip to content

Commit

Permalink
chore: address second review
Browse files Browse the repository at this point in the history
  • Loading branch information
tbraun96 committed Nov 13, 2024
1 parent fe1e622 commit 241e090
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macros/blueprint-proc-macro/src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use gadget_blueprint_proc_macro_core::{FieldType, JobDefinition, JobMetadata};
use indexmap::{IndexMap, IndexSet};
use itertools::Itertools;
use proc_macro::TokenStream;
use proc_macro2::Span;
use quote::{format_ident, quote, ToTokens};
use std::collections::HashSet;
use syn::ext::IdentExt;
Expand Down Expand Up @@ -255,9 +256,7 @@ pub(crate) fn generate_event_workflow_tokenstream(
// If is_raw, assume the actual context is the second param
quote! { ctx. #field_in_self .clone() }
})
.ok_or_else(|| {
syn::Error::new_spanned(quote! { (#(#params),*) }, "Must specify a context")
})?;
.ok_or_else(|| syn::Error::new(Span::call_site(), "Must specify a context"))?;

let autogen_struct_name = quote! { #struct_name };

Expand Down

0 comments on commit 241e090

Please sign in to comment.