Fix windows build

This commit is contained in:
2026-05-21 17:29:49 +02:00
parent 6276641dd1
commit 260986dfd0
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -228,8 +228,7 @@ pub fn decode(dbc: &Dbc,
println!("Data: {}", data.len());
println!("Write to file...");
// TODO joint paths
let out_file_name = format!("{}.ld", date);
let out_file_name = format!("{}.ld", date.replace(":", "-"));
let out_name = Path::new(&out_file_name);
motec::write(&output_dir.join(out_name), &msgs, data);
println!("Finished!");
+1 -1
View File
@@ -6,7 +6,7 @@ fn main() {
let args: Vec::<_> = std::env::args().collect();
let data =
fs::read_to_string(&args[1]).expect("Unable to read input file");
fs::read_to_string(Path::new(&args[1])).expect("Unable to read input file");
let dbc = Dbc::try_from(data.as_str()).expect("Failed to parse dbc file");
let asc_path = Path::new(&args[2]);