mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
fix: check of osc files within osb files
This commit is contained in:
parent
b242703452
commit
55cc9eeb29
@ -63,7 +63,7 @@ pub fn check_file(file: &Path, password: &str) -> Result<Vec<CheckNotice>, Check
|
||||
if zip_file.is_file() && zip_file.name().ends_with(".osc") {
|
||||
let mut buf = String::new();
|
||||
let _ = zip_file.read_to_string(&mut buf);
|
||||
match osc::check(buf) {
|
||||
match osc::check(&buf) {
|
||||
Ok(ref mut check_result) => {
|
||||
result.push(CheckNotice::Info {
|
||||
description: format!("Prüfe Eintrag '{}'", zip_file.name()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user