From c2ad82b6879a5b1a10f245b7a405aca01d8309c1 Mon Sep 17 00:00:00 2001 From: pandaadir05 Date: Fri, 21 Nov 2025 01:34:41 +0200 Subject: [PATCH] Fix syntax errors in yara_engine.rs --- ghost-core/src/yara_engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost-core/src/yara_engine.rs b/ghost-core/src/yara_engine.rs index 99e11b6..675a36f 100644 --- a/ghost-core/src/yara_engine.rs +++ b/ghost-core/src/yara_engine.rs @@ -119,7 +119,7 @@ impl DynamicYaraEngine { /// Compile all YARA rules from the rules directory pub fn compile_rules(&mut self) -> Result { let rules_dir = self.rules_path.as_ref().ok_or_else(|| { - GhostError::Configuration { message: "No rules directory configured".to_string( }) + GhostError::Configuration { message: "No rules directory configured".to_string() } })?; if !rules_dir.exists() { @@ -130,7 +130,7 @@ impl DynamicYaraEngine { } let mut compiler = Compiler::new() - .map_err(|e| GhostError::Configuration { message: format!("YARA compiler error: {}", e }))?; + .map_err(|e| GhostError::Configuration { message: format!("YARA compiler error: {}", e) })?; let mut rule_count = 0; self.rule_metadata.clear();