From 9224b9ba7f27d3d309b073372702329d74d64f06 Mon Sep 17 00:00:00 2001 From: s1341 Date: Sun, 15 Dec 2024 09:22:31 +0200 Subject: [PATCH] Fix clippy --- frida/src/device_manager.rs | 4 ++-- frida/src/script.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frida/src/device_manager.rs b/frida/src/device_manager.rs index 65e00aa..aff65ff 100644 --- a/frida/src/device_manager.rs +++ b/frida/src/device_manager.rs @@ -82,7 +82,7 @@ impl<'a> DeviceManager<'a> { return Err(Error::DeviceLookupFailed); } - Ok(Device::from_raw(device_ptr)); + Ok(Device::from_raw(device_ptr)) } /// Returns the remote device with the specified host. @@ -141,7 +141,7 @@ impl<'a> DeviceManager<'a> { return Err(Error::DeviceLookupFailed); } - Ok(Device::from_raw(device_ptr)); + Ok(Device::from_raw(device_ptr)) } } diff --git a/frida/src/script.rs b/frida/src/script.rs index c2d554b..fff4fe5 100644 --- a/frida/src/script.rs +++ b/frida/src/script.rs @@ -160,7 +160,7 @@ impl Exports<'_> { } } -impl Script<'_> { +impl<'a> Script<'a> { pub(crate) fn from_raw(script_ptr: *mut _FridaScript) -> Script<'a> { let rpc_counter = Rc::new(RefCell::new(0)); let handler = Rc::new(RefCell::new(CallbackHandler::new()));