Revert change.

This commit is contained in:
Stephen Chung 2021-10-11 16:46:34 +08:00
parent 90b6b15f15
commit 782f6a3e12

View File

@ -299,7 +299,7 @@ impl fmt::Display for ParseError {
impl From<ParseErrorType> for Box<EvalAltResult> {
#[inline(always)]
fn from(err: ParseErrorType) -> Self {
err.into()
Box::new(err.into())
}
}
@ -313,7 +313,7 @@ impl From<ParseErrorType> for EvalAltResult {
impl From<ParseError> for Box<EvalAltResult> {
#[inline(always)]
fn from(err: ParseError) -> Self {
err.into()
Box::new(err.into())
}
}