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()));