diff --git a/frida-gum/src/instruction_writer/x86_64/writer.rs b/frida-gum/src/instruction_writer/x86_64/writer.rs index 6e330d9..9119b6d 100644 --- a/frida-gum/src/instruction_writer/x86_64/writer.rs +++ b/frida-gum/src/instruction_writer/x86_64/writer.rs @@ -5,9 +5,6 @@ use { gum_sys::{gssize, GumArgument, GumBranchHint}, }; -#[cfg(not(feature = "module-names"))] -use alloc::vec::Vec; - /// The x86/x86_64 instruction writer. pub struct X86InstructionWriter { pub(crate) writer: *mut gum_sys::_GumX86Writer, diff --git a/frida-gum/src/lib.rs b/frida-gum/src/lib.rs index f25d6e6..6eac053 100644 --- a/frida-gum/src/lib.rs +++ b/frida-gum/src/lib.rs @@ -71,9 +71,6 @@ use core::{ fmt::{Debug, Display, Formatter, LowerHex, UpperHex}, }; -#[cfg(not(feature = "module-names"))] -use alloc::string::String; - pub mod stalker; pub mod interceptor; diff --git a/frida-gum/src/memory_range.rs b/frida-gum/src/memory_range.rs index e9e1dc8..300c4d2 100644 --- a/frida-gum/src/memory_range.rs +++ b/frida-gum/src/memory_range.rs @@ -11,9 +11,6 @@ use core::{ ops::Range, }; -#[cfg(not(feature = "module-names"))] -use alloc::vec::Vec; - pub struct MatchPattern { pub(crate) internal: *mut gum_sys::GumMatchPattern, } diff --git a/frida-gum/src/module.rs b/frida-gum/src/module.rs index beb5779..35516c3 100644 --- a/frida-gum/src/module.rs +++ b/frida-gum/src/module.rs @@ -21,9 +21,6 @@ use { frida_gum_sys::{gboolean, gpointer, GumExportDetails, GumModuleDetails, GumSymbolDetails}, }; -#[cfg(not(feature = "module-names"))] -use alloc::{boxed::Box, string::String, vec, vec::Vec}; - extern "C" fn enumerate_ranges_callout( range_details: *const gum_sys::_GumRangeDetails, user_data: *mut c_void, diff --git a/frida-gum/src/module_map.rs b/frida-gum/src/module_map.rs index a1f5ffc..6a360dd 100644 --- a/frida-gum/src/module_map.rs +++ b/frida-gum/src/module_map.rs @@ -19,13 +19,6 @@ use { frida_gum_sys as gum_sys, }; -#[cfg(not(feature = "module-names"))] -use alloc::{ - boxed::Box, - string::{String, ToString}, - vec::Vec, -}; - #[cfg(feature = "module-names")] use std::path::Path; diff --git a/frida-gum/src/range_details.rs b/frida-gum/src/range_details.rs index 6f3c5b2..5e6a631 100644 --- a/frida-gum/src/range_details.rs +++ b/frida-gum/src/range_details.rs @@ -13,7 +13,6 @@ extern crate alloc; use { crate::MemoryRange, - alloc::string::String, core::{ ffi::{c_void, CStr}, marker::PhantomData, @@ -21,9 +20,6 @@ use { frida_gum_sys as gum_sys, }; -#[cfg(not(feature = "module-names"))] -use alloc::boxed::Box; - /// The memory protection of an unassociated page. #[derive(Clone, FromPrimitive)] #[repr(u32)] diff --git a/frida-gum/src/stalker/transformer.rs b/frida-gum/src/stalker/transformer.rs index 5faa02c..089d7f2 100644 --- a/frida-gum/src/stalker/transformer.rs +++ b/frida-gum/src/stalker/transformer.rs @@ -10,9 +10,6 @@ use { core::{ffi::c_void, marker::PhantomData}, }; -#[cfg(not(feature = "module-names"))] -use alloc::boxed::Box; - pub struct StalkerIterator<'a> { iterator: *mut frida_gum_sys::GumStalkerIterator, phantom: PhantomData<&'a frida_gum_sys::GumStalkerIterator>, diff --git a/frida/src/process.rs b/frida/src/process.rs index 4741c64..2b126ce 100644 --- a/frida/src/process.rs +++ b/frida/src/process.rs @@ -5,7 +5,6 @@ */ use frida_sys::{FridaSpawnOptions, _FridaProcess}; -use std::convert::TryInto; use std::ffi::{CStr, CString}; use std::marker::PhantomData;