LexError directly to ParseError.
This commit is contained in:
@@ -119,11 +119,10 @@ pub fn from_dynamic<'de, T: Deserialize<'de>>(
|
||||
|
||||
impl Error for Box<EvalAltResult> {
|
||||
fn custom<T: fmt::Display>(err: T) -> Self {
|
||||
EvalAltResult::ErrorParsing(
|
||||
ParseErrorType::BadInput(LexError::ImproperSymbol("".to_string(), err.to_string())),
|
||||
Position::NONE,
|
||||
)
|
||||
.into()
|
||||
LexError::ImproperSymbol("".to_string(), err.to_string())
|
||||
.into_err(Position::NONE)
|
||||
.into()
|
||||
.into()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user