Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 12, 2024
1 parent 0f90d0c commit a0bbecd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pio-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ pub fn pio_file(item: TokenStream) -> TokenStream {
Err(e) => return parse_error(e, &args.program).into(),
};

to_codegen(program, args.max_program_size, args.file_path.into_os_string().into_string().ok()).into()
to_codegen(
program,
args.max_program_size,
args.file_path.into_os_string().into_string().ok(),
)
.into()
}

/// A macro which invokes the PIO assembler at compile time.
Expand Down Expand Up @@ -390,7 +395,7 @@ fn to_codegen(
// a recompile. Should be replaced by
// `proc_macro::tracked_path::path` when it is stable.
let dummy_include = match file {
Some(file_path) => quote!{let _ = include_bytes!( #file_path );},
Some(file_path) => quote! {let _ = include_bytes!( #file_path );},
None => quote!(),
};
quote! {
Expand Down

0 comments on commit a0bbecd

Please sign in to comment.