Fix no-std build.

This commit is contained in:
Stephen Chung 2020-08-31 12:09:52 +08:00
parent f4e4958973
commit 91b4f8a6bc

View File

@ -13,7 +13,7 @@ use crate::parser::FLOAT;
#[cfg(not(feature = "no_float"))] #[cfg(not(feature = "no_float"))]
use num_traits::float::Float; use num_traits::float::Float;
use crate::stdlib::format; use crate::stdlib::{format, string::String};
#[inline(always)] #[inline(always)]
pub fn make_err(msg: String) -> Box<EvalAltResult> { pub fn make_err(msg: String) -> Box<EvalAltResult> {