From 55cc9eeb29a296b87cfee4d9e4c38e4887eb569e Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 10 Dec 2024 23:06:57 +0100 Subject: [PATCH] fix: check of osc files within osb files --- src/checks/osb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checks/osb.rs b/src/checks/osb.rs index a679c5c..708c8ff 100644 --- a/src/checks/osb.rs +++ b/src/checks/osb.rs @@ -63,7 +63,7 @@ pub fn check_file(file: &Path, password: &str) -> Result, 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()),