Skip to content

Commit

Permalink
remove borrow for arch_handle in CallingConvention
Browse files Browse the repository at this point in the history
  • Loading branch information
rbran committed May 9, 2024
1 parent 238089d commit b17ff48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/callingconvention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<A: Architecture> CallingConventionBase for CallingConvention<A> {
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()
Expand All @@ -583,7 +583,7 @@ impl<A: Architecture> CallingConventionBase for CallingConvention<A> {
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()
Expand Down

0 comments on commit b17ff48

Please sign in to comment.