1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-03 01:02:55 +00:00

chore: code cleanup

This commit is contained in:
2024-04-24 08:00:40 +02:00
parent 5e297a0353
commit 79193ba91b
4 changed files with 10 additions and 7 deletions

View File

@ -141,7 +141,7 @@ impl InputFile {
}
} else {
return Err(FileError::Parsing(
filename.into(),
filename,
"Kann OSB-Datei nicht lesen".to_string(),
));
}

View File

@ -88,7 +88,7 @@ pub fn unzip_osb_using_password(path: &str, dir: &str, password: &str) {
};
let outpath = match file.enclosed_name() {
Some(path) => Path::new(dir).join(path.to_owned()),
Some(path) => Path::new(dir).join(&path),
None => continue,
};