diff --git a/RELEASES.md b/RELEASES.md index c849496b..d70fcdfd 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -24,6 +24,7 @@ Breaking changes New features ------------ +* `f32_float` feature to set `FLOAT` to `f32`. * Low-level API for custom syntax allowing more flexibility in designing the syntax. * `Module::fill_with` to poly-fill a module with another. diff --git a/tests/modules.rs b/tests/modules.rs index be23ac6b..ab51f4e4 100644 --- a/tests/modules.rs +++ b/tests/modules.rs @@ -1,7 +1,7 @@ #![cfg(not(feature = "no_module"))] use rhai::{ module_resolvers::StaticModuleResolver, Dynamic, Engine, EvalAltResult, ImmutableString, - Module, ParseError, ParseErrorType, Scope, FLOAT, INT, + Module, ParseError, ParseErrorType, Scope, INT, }; #[test] @@ -81,7 +81,7 @@ fn test_module_resolver() -> Result<(), Box> { #[cfg(not(feature = "no_float"))] module.set_fn_4_mut( "sum_of_three_args".to_string(), - |target: &mut INT, a: INT, b: INT, c: FLOAT| { + |target: &mut INT, a: INT, b: INT, c: rhai::FLOAT| { *target = a + b + c as INT; Ok(()) },