diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-05-10 17:06:08 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-05-10 17:45:16 -0400 |
| commit | a0af66644235cc8300f4b443ae90da84f901569d (patch) | |
| tree | d6654f2068425d09f836baf0fd74fbae9d121e46 /rust/src/references.rs | |
| parent | 1f776b8b1e119d5b9eda0d51ae43b790375e7b91 (diff) | |
Rust API : Minor cleanup of PR
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, |
