summaryrefslogtreecommitdiff
path: root/rust/src/references.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-05-10 17:06:08 -0400
committerKyleMiles <krm504@nyu.edu>2023-05-10 17:45:16 -0400
commita0af66644235cc8300f4b443ae90da84f901569d (patch)
treed6654f2068425d09f836baf0fd74fbae9d121e46 /rust/src/references.rs
parent1f776b8b1e119d5b9eda0d51ae43b790375e7b91 (diff)
Rust API : Minor cleanup of PR
Diffstat (limited to 'rust/src/references.rs')
-rw-r--r--rust/src/references.rs6
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,