diff --git a/frida-gum/src/module.rs b/frida-gum/src/module.rs index 55ad145..0935f33 100644 --- a/frida-gum/src/module.rs +++ b/frida-gum/src/module.rs @@ -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 } } diff --git a/frida-gum/src/range_details.rs b/frida-gum/src/range_details.rs index 6b19bc8..a9ec40e 100644 --- a/frida-gum/src/range_details.rs +++ b/frida-gum/src/range_details.rs @@ -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 { if file.is_null() { None diff --git a/frida-gum/src/stalker/transformer.rs b/frida-gum/src/stalker/transformer.rs index 48a29d6..ed8675f 100644 --- a/frida-gum/src/stalker/transformer.rs +++ b/frida-gum/src/stalker/transformer.rs @@ -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) } }