summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs2
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)
}
}