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:
@@ -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};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user