diff --git a/src/firmware/xbuilder.rs b/src/firmware/xbuilder.rs index 28cb753..c7ce4a6 100644 --- a/src/firmware/xbuilder.rs +++ b/src/firmware/xbuilder.rs @@ -33,14 +33,7 @@ impl Peekable for LastBuildFirmware { for file2 in ar.entries().unwrap() { let f = file2.unwrap(); - peeked.push( - f.path() - .unwrap() - .file_name() - .unwrap() - .to_string_lossy() - .to_string(), - ); + peeked.push(f.path().unwrap().as_os_str().to_string_lossy().to_string()); } Ok(peeked)