Fix serde feature.

This commit is contained in:
Stephen Chung 2020-10-20 23:29:56 +08:00
parent 07bdb824fe
commit 44dc5f95c3

View File

@ -99,7 +99,7 @@ pub fn to_dynamic<T: Serialize>(value: T) -> Result<Dynamic, Box<EvalAltResult>>
impl Error for Box<EvalAltResult> {
fn custom<T: fmt::Display>(err: T) -> Self {
EvalAltResult::ErrorRuntime(err.to_string(), Position::none()).into()
EvalAltResult::ErrorRuntime(err.to_string().into(), Position::none()).into()
}
}