Fix all syntax errors and apply cargo fmt

This commit is contained in:
pandaadir05
2025-11-21 01:37:32 +02:00
parent c2ad82b687
commit 0c8721a08a
4 changed files with 109 additions and 59 deletions

View File

@@ -434,7 +434,9 @@ pub fn parse_iat_from_memory(
_base_address: usize,
_memory_reader: impl Fn(u32, usize, usize) -> Result<Vec<u8>>,
) -> Result<Vec<ImportEntry>> {
Err(GhostError::PlatformNotSupported { feature: "IAT parsing not implemented for this platform".to_string() })
Err(GhostError::PlatformNotSupported {
feature: "IAT parsing not implemented for this platform".to_string(),
})
}
#[cfg(not(windows))]
@@ -444,5 +446,7 @@ pub fn detect_iat_hooks(
_disk_path: &str,
_memory_reader: impl Fn(u32, usize, usize) -> Result<Vec<u8>>,
) -> Result<IATHookResult> {
Err(GhostError::PlatformNotSupported { feature: "IAT hook detection not implemented for this platform".to_string() })
Err(GhostError::PlatformNotSupported {
feature: "IAT hook detection not implemented for this platform".to_string(),
})
}