Skip to content

Commit

Permalink
Panic on invalid paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 11, 2025
1 parent 3a4be58 commit 4e41844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pio-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub fn pio_file(item: TokenStream) -> TokenStream {
to_codegen(
program,
args.max_program_size,
args.file_path.into_os_string().into_string().ok(),
Some(args.file_path.into_os_string().into_string().expect("file path must be valid UTF-8")),
)
.into()
}
Expand Down

0 comments on commit 4e41844

Please sign in to comment.