From b17ff48193287851c3e1303713be1bd9252b479a Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Thu, 9 May 2024 14:57:48 -0300 Subject: [PATCH] remove borrow for arch_handle in CallingConvention --- rust/src/callingconvention.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()