From 662482634ae8147bf3292bbf02a3c355b313d698 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Mon, 12 Feb 2024 23:40:08 +0100 Subject: [PATCH] Use locally --- rustler/src/dynamic.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rustler/src/dynamic.rs b/rustler/src/dynamic.rs index 19b0a98c..3d5b30b3 100644 --- a/rustler/src/dynamic.rs +++ b/rustler/src/dynamic.rs @@ -1,5 +1,3 @@ -use std::ffi::c_double; - #[cfg(feature = "nif_version_2_15")] use rustler_sys::ErlNifTermType; @@ -106,7 +104,7 @@ impl<'a> Term<'a> { impl_check!(is_tuple); pub fn is_float(self) -> bool { - let mut val: c_double = 0.0; + let mut val: std::ffi::c_double = 0.0; unsafe { rustler_sys::enif_get_double(self.get_env().as_c_arg(), self.as_c_arg(), &mut val) == 1 }