From 266cebea83b58cc53030c91d0409bd50063cdc9d Mon Sep 17 00:00:00 2001 From: xoffio <38369407+Xoffio@users.noreply.github.com> Date: Thu, 10 Oct 2024 22:31:03 -0400 Subject: [PATCH] Unnecessary variable removed. --- frida/src/device_manager.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frida/src/device_manager.rs b/frida/src/device_manager.rs index a80abfd..3261b76 100644 --- a/frida/src/device_manager.rs +++ b/frida/src/device_manager.rs @@ -147,12 +147,11 @@ impl<'a> DeviceManager<'a> { impl<'a> Drop for DeviceManager<'a> { fn drop(&mut self) { - let mut error: *mut frida_sys::GError = std::ptr::null_mut(); unsafe { frida_sys::frida_device_manager_close_sync( self.manager_ptr, std::ptr::null_mut(), - &mut error, + std::ptr::null_mut(), ); frida_sys::frida_unref(self.manager_ptr as _) }