From 8785e9d1a931d7562053fd6045b660a6211fbc1d Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 8 Jun 2021 17:23:28 -0400 Subject: Rust API : Replace Platform::from_raw with Platform::ref_from_raw --- rust/src/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/function.rs') 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 { unsafe { let plat = BNGetFunctionPlatform(self.handle); - Ref::new(Platform::from_raw(plat)) + Platform::ref_from_raw(plat) } } -- cgit v1.3.1