Fix feature builds.

This commit is contained in:
Stephen Chung
2021-03-22 12:18:13 +08:00
parent a82f0fc738
commit 22ff68cdc9
3 changed files with 8 additions and 14 deletions

View File

@@ -283,7 +283,7 @@ mod float_functions {
}
}
#[rhai_fn(return_raw)]
pub fn parse_float(s: &str) -> Result<f64, Box<EvalAltResult>> {
pub fn parse_float(s: &str) -> Result<FLOAT, Box<EvalAltResult>> {
s.trim().parse::<FLOAT>().map_err(|err| {
EvalAltResult::ErrorArithmetic(
format!("Error parsing floating-point number '{}': {}", s, err),