Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Jan 14, 2025
1 parent a50e77f commit 41c03d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frida-gum/src/module_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use {
use alloc::{boxed::Box, vec::Vec};

#[cfg(feature = "module-names")]
use std::path::Path;
use std::{ffi::CStr, path::Path};

#[cfg(feature = "module-names")]
struct SaveModuleDetailsByNameContext {
Expand Down Expand Up @@ -91,7 +91,7 @@ impl<'a> ModuleMap<'a> {

/// Create a new [`ModuleMap`] from a list of names
#[cfg(feature = "module-names")]
pub fn new_from_names(gum: &Gum, names: &[&str]) -> Self {
pub fn new_from_names(gum: &'a Gum, names: &[&str]) -> Self {
Self::new_with_filter(gum, &mut |details: Module| {
for name in names {
if (name.starts_with('/') && details.path().eq(name))
Expand Down Expand Up @@ -142,7 +142,7 @@ impl<'a> ModuleMap<'a> {
}
}

impl<'a> Drop for ModuleMap<'_> {
impl Drop for ModuleMap<'_> {
fn drop(&mut self) {
unsafe { gum_sys::g_object_unref(self.module_map as *mut c_void) }
}
Expand Down

0 comments on commit 41c03d2

Please sign in to comment.