Skip to content

Commit

Permalink
fix: compilation on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Apr 1, 2024
1 parent 389b214 commit 2bd0c32
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions frida-gum/src/instruction_writer/x86_64/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions frida-gum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions frida-gum/src/memory_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
3 changes: 0 additions & 3 deletions frida-gum/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 0 additions & 7 deletions frida-gum/src/module_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 0 additions & 4 deletions frida-gum/src/range_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
extern crate alloc;
use {
crate::MemoryRange,
alloc::string::String,
core::{
ffi::{c_void, CStr},
marker::PhantomData,
},
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)]
Expand Down
3 changes: 0 additions & 3 deletions frida-gum/src/stalker/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
1 change: 0 additions & 1 deletion frida/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

use frida_sys::{FridaSpawnOptions, _FridaProcess};
use std::convert::TryInto;
use std::ffi::{CStr, CString};
use std::marker::PhantomData;

Expand Down

0 comments on commit 2bd0c32

Please sign in to comment.