From e920feec5f298f9f321f64036076c5be520be826 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 14 Oct 2021 14:23:14 +0530 Subject: [PATCH] fix: enable float return types (#9) --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 3ac8454..87b401b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -256,6 +256,8 @@ fn process_function( "u64" => Type::U64, "usize" => Type::Usize, "isize" => Type::Isize, + "f32" => Type::F32, + "f64" => Type::F64, _ => panic!("{} return type not supported by Deno FFI", ident), } }