Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
s1341 committed Dec 15, 2024
1 parent acfbeb7 commit 44e66e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frida-gum/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub struct Module<'a> {
_gum: &'a Gum,
}

impl<'a> Module<'a> {
impl Module<'_> {
pub fn obtain(gum: &Gum) -> Module {
Module { _gum: gum }
}
Expand Down
2 changes: 1 addition & 1 deletion frida-gum/src/range_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub struct FileMapping<'a> {
phantom: PhantomData<&'a gum_sys::GumFileMapping>,
}

impl<'a> FileMapping<'a> {
impl FileMapping<'_> {
pub(crate) fn from_raw(file: *const gum_sys::GumFileMapping) -> Option<Self> {
if file.is_null() {
None
Expand Down
2 changes: 1 addition & 1 deletion frida-gum/src/stalker/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<'a> Transformer<'a> {
}
}

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

0 comments on commit 44e66e2

Please sign in to comment.