diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-06-08 17:23:28 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-07-07 23:27:28 -0400 |
| commit | 8785e9d1a931d7562053fd6045b660a6211fbc1d (patch) | |
| tree | 4506696e861fcffa3e321bd32e00621a90a42693 /rust/src/function.rs | |
| parent | 013945b3efa885101db16990311093912775d1c6 (diff) | |
Rust API : Replace Platform::from_raw with Platform::ref_from_raw
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index 4230900f..51c9e634 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -133,7 +133,7 @@ impl Function { pub fn platform(&self) -> Ref<Platform> { unsafe { let plat = BNGetFunctionPlatform(self.handle); - Ref::new(Platform::from_raw(plat)) + Platform::ref_from_raw(plat) } } |
