diff options
Diffstat (limited to 'rust/src/references.rs')
| -rw-r--r-- | rust/src/references.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/references.rs b/rust/src/references.rs index e3a73013..5e878a7d 100644 --- a/rust/src/references.rs +++ b/rust/src/references.rs @@ -25,9 +25,9 @@ pub struct DataReference { impl CodeReference { pub(crate) unsafe fn new(handle: &BNReferenceSource) -> Self { - let func = ManuallyDrop::new(Function::from_raw((*handle).func)); - let arch = CoreArchitecture::from_raw((*handle).arch); - let address = (*handle).addr; + let func = ManuallyDrop::new(Function::from_raw(handle.func)); + let arch = CoreArchitecture::from_raw(handle.arch); + let address = handle.addr; Self { func, arch, |
