Skip to content

Commit 4e41844

Browse files
committed
Panic on invalid paths
1 parent 3a4be58 commit 4e41844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pio-proc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub fn pio_file(item: TokenStream) -> TokenStream {
287287
to_codegen(
288288
program,
289289
args.max_program_size,
290-
args.file_path.into_os_string().into_string().ok(),
290+
Some(args.file_path.into_os_string().into_string().expect("file path must be valid UTF-8")),
291291
)
292292
.into()
293293
}

0 commit comments

Comments
 (0)