Skip to content

Commit

Permalink
Fix cI
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Jan 14, 2025
1 parent ad561eb commit 719c95a
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions frida-gum/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
)]

use crate::MemoryRange;

#[cfg(feature = "std")]
use std::string::ToString;

use {
crate::{Gum, NativePointer, PageProtection, RangeDetails},
core::{ffi::c_void, ffi::CStr, fmt},

Check failure on line 22 in frida-gum/src/module.rs

View workflow job for this annotation

GitHub Actions / Check no_std

unused import: `ffi::CStr`

Check failure on line 22 in frida-gum/src/module.rs

View workflow job for this annotation

GitHub Actions / Check no_std

unused import: `ffi::CStr`

Check failure on line 22 in frida-gum/src/module.rs

View workflow job for this annotation

GitHub Actions / Check (x86_64)

unused import: `ffi::CStr`

Check failure on line 22 in frida-gum/src/module.rs

View workflow job for this annotation

GitHub Actions / Check (x86_64)

unused import: `ffi::CStr`
Expand Down Expand Up @@ -56,24 +57,6 @@ impl fmt::Display for ExportType {
}
}

// impl Module {
// pub unsafe fn from_module(module: *const GumModule) -> Self {
// Self {
// inner: gum_sys::g_object_ref(module as _) as *mut GumModule,
// }
// }
// }
//
// impl fmt::Display for ModuleDetailsOwned {
// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
// write!(
// fmt,
// "{{\n\tbase: 0x{:x}\n\tname: {}\n\tpath: {}\n\tsize: {}\n}}",
// self.base_address, self.name, self.path, self.size
// )
// }
// }

/// Module symbol details returned by [`Module::enumerate_symbols`].
pub struct SymbolDetails {
pub name: String,
Expand Down Expand Up @@ -122,6 +105,7 @@ impl Module {
}
}

#[cfg(feature = "std")]
/// Get the name of this module
pub fn name(&self) -> String {
unsafe {
Expand All @@ -131,6 +115,7 @@ impl Module {
}
}

#[cfg(feature = "std")]
/// Get the path of this module
pub fn path(&self) -> String {
unsafe {
Expand Down

0 comments on commit 719c95a

Please sign in to comment.