diff --git a/frida/src/device_manager.rs b/frida/src/device_manager.rs index aff65ff..58be1eb 100644 --- a/frida/src/device_manager.rs +++ b/frida/src/device_manager.rs @@ -104,7 +104,7 @@ impl<'a> DeviceManager<'a> { return Err(Error::DeviceLookupFailed); } - return Ok(Device::from_raw(device_ptr)); + return Ok(Device::from_raw(device_ptr)) } /// Returns the local device. @@ -145,7 +145,7 @@ impl<'a> DeviceManager<'a> { } } -impl<'a> Drop for DeviceManager<'a> { +impl Drop for DeviceManager<'_> { fn drop(&mut self) { unsafe { frida_sys::frida_device_manager_close_sync( diff --git a/frida/src/script.rs b/frida/src/script.rs index fff4fe5..8941d53 100644 --- a/frida/src/script.rs +++ b/frida/src/script.rs @@ -356,7 +356,7 @@ impl Exports<'_> { } } -impl<'a> Drop for Script<'a> { +impl Drop for Script<'_> { fn drop(&mut self) { unsafe { frida_sys::frida_unref(self.script_ptr as _) } }