Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tbraun96 committed Dec 11, 2024
1 parent 90ec531 commit 31c94d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions macros/blueprint-proc-macro/src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,8 @@ pub fn generate_job_const_block(
) -> syn::Result<proc_macro2::TokenStream> {
let (fn_name_string, job_def_name, job_id_name) = get_job_id_field_name(input);
// Creates Job Definition using input parameters
// convert litint to u64
let job_id_as_u64 = u64::from_str(&job_id.to_string()).map_err(|err| {
syn::Error::new_spanned(
job_id,
format!("Failed to convert job id to u64: {err}"),
)
syn::Error::new_spanned(job_id, format!("Failed to convert job id to u64: {err}"))
})?;
let job_def = JobDefinition {
job_id: job_id_as_u64,
Expand Down

0 comments on commit 31c94d8

Please sign in to comment.