fix warnings on windows (#344)

This commit is contained in:
Toka 2021-11-04 02:15:24 +09:00 committed by GitHub
parent 12c470a707
commit 1ecef5598e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,6 @@ use rustc_version::{version_meta, Channel};
#[allow(clippy::ptr_arg, clippy::upper_case_acronyms)]
fn main() {
#[cfg(target_os = "windows")]
#[allow(clippy::ptr_arg, clippy::upper_case_acronyms)]
windows::build!(
Windows::Win32::Foundation::{HANDLE, HWND, BOOL, PSTR, CloseHandle, NTSTATUS},
Windows::Win32::System::{

View File

@ -25,6 +25,10 @@ use frida_gum::{
stalker::{StalkerOutput, Transformer},
CpuContext, ModuleDetails, ModuleMap,
};
#[cfg(unix)]
use frida_gum::CpuContext;
use frida_gum::{Gum, Module, PageProtection};
#[cfg(target_arch = "aarch64")]
use num_traits::cast::FromPrimitive;