Fix CI/CD validation errors

- Add allow dead_code to unused helper function
- Remove redundant PID assertion in macOS test
- All clippy checks pass with -D warnings
- All tests passing (33/33)
This commit is contained in:
pandaadir05
2025-11-21 13:53:30 +02:00
parent 646f1fc8b5
commit a8fe6ed2f8
3 changed files with 9 additions and 2 deletions

View File

@@ -436,6 +436,7 @@ impl DynamicYaraEngine {
/// Read memory from a specific process and region (Linux implementation)
#[cfg(target_os = "linux")]
#[allow(dead_code)]
fn read_process_memory(pid: u32, region: &MemoryRegion) -> Result<Vec<u8>, GhostError> {
use std::fs::File;
use std::io::{Read, Seek, SeekFrom};

View File

@@ -47,7 +47,6 @@ fn test_process_info_structure() {
let processes = process::enumerate_processes().expect("Failed to enumerate processes");
for proc in processes.iter().take(10) {
assert!(proc.pid > 0 || proc.pid == 0);
assert!(proc.thread_count >= 1);
if proc.pid > 0 {

View File

@@ -402,6 +402,13 @@ impl App {
}
pub fn get_tab_titles(&self) -> Vec<&str> {
vec!["Overview", "Processes", "Detections", "Threat Intel", "Memory", "Logs"]
vec![
"Overview",
"Processes",
"Detections",
"Threat Intel",
"Memory",
"Logs",
]
}
}