Fix compilation errors from clippy fixes

- Fix '?' operator error in detection.rs by proper error handling without changing return type
- Fix EbpfError::RuntimeError to use existing EventProcessingError variant
- Make compiler mutable in yara_engine.rs to fix move errors
- Add missing evasion_analysis field to DetectionResult struct
- Fix identifier clone issue in YARA rule matching

These fixes resolve the E0277, E0382, and E0599 compilation errors.
This commit is contained in:
pandaadir05
2025-11-21 01:59:43 +02:00
parent 53b77ad1bf
commit d8d562ddf1
4 changed files with 18 additions and 53 deletions

View File

@@ -341,7 +341,7 @@ impl DynamicYaraEngine {
offset: (base_address + m.offset) as u64,
length: m.length as u32,
metadata: metadata.clone(),
matched_strings: vec![identifier],
matched_strings: vec![identifier.clone()],
});
}
}