Skip to content

Commit

Permalink
Use locally
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor authored Feb 12, 2024
1 parent 176fc5c commit 6624826
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rustler/src/dynamic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::ffi::c_double;

#[cfg(feature = "nif_version_2_15")]
use rustler_sys::ErlNifTermType;

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 6624826

Please sign in to comment.