Fix LexError::ImproperSymbol.

This commit is contained in:
Stephen Chung
2020-11-21 15:15:14 +08:00
parent 611f6151d5
commit eb4636f219
2 changed files with 4 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ 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(err.to_string())),
ParseErrorType::BadInput(LexError::ImproperSymbol("".to_string(), err.to_string())),
Position::NONE,
)
.into()