diff --git a/rust/src/callingconvention.rs b/rust/src/callingconvention.rs index 14cfd61ad..b5f81575c 100644 --- a/rust/src/callingconvention.rs +++ b/rust/src/callingconvention.rs @@ -563,7 +563,7 @@ impl CallingConventionBase for CallingConvention { unsafe { let mut count = 0; let regs = BNGetIntegerArgumentRegisters(self.handle, &mut count); - let arch = self.arch_handle.borrow(); + let arch = self.arch_handle; let res = slice::from_raw_parts(regs, count) .iter() @@ -583,7 +583,7 @@ impl CallingConventionBase for CallingConvention { unsafe { let mut count = 0; let regs = BNGetFloatArgumentRegisters(self.handle, &mut count); - let arch = self.arch_handle.borrow(); + let arch = self.arch_handle; let res = slice::from_raw_parts(regs, count) .iter()