From 534c3bc85860d2c14a490cf68ea1174cb9edbfde Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Wed, 10 Feb 2021 22:04:29 +0000 Subject: Better type support --- rust/src/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/platform.rs') diff --git a/rust/src/platform.rs b/rust/src/platform.rs index 0e0b98b9..45e4211e 100644 --- a/rust/src/platform.rs +++ b/rust/src/platform.rs @@ -41,7 +41,7 @@ macro_rules! cc_func { if cc.is_null() { None } else { - Some(Ref::new(CallingConvention::from_raw(cc, arch))) + Some(CallingConvention::ref_from_raw(cc, arch)) } } } -- cgit v1.3.1