Fix serde build.
This commit is contained in:
parent
d7d6f74dfd
commit
cc304ba513
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use super::str::ImmutableStringDeserializer;
|
use super::str::ImmutableStringDeserializer;
|
||||||
use crate::dynamic::{Dynamic, Union};
|
use crate::dynamic::{Dynamic, Union};
|
||||||
use crate::parse_error::ParseErrorType;
|
use crate::parse_error::{LexError, ParseErrorType};
|
||||||
use crate::result::EvalAltResult;
|
use crate::result::EvalAltResult;
|
||||||
use crate::token::NO_POS;
|
use crate::token::NO_POS;
|
||||||
use crate::utils::ImmutableString;
|
use crate::utils::ImmutableString;
|
||||||
@ -123,10 +123,10 @@ pub fn from_dynamic<'de, T: Deserialize<'de>>(
|
|||||||
|
|
||||||
impl Error for Box<EvalAltResult> {
|
impl Error for Box<EvalAltResult> {
|
||||||
fn custom<T: fmt::Display>(err: T) -> Self {
|
fn custom<T: fmt::Display>(err: T) -> Self {
|
||||||
EvalAltResult::ErrorParsing(ParseErrorType::BadInput(
|
EvalAltResult::ErrorParsing(
|
||||||
LexError::ImproperSymbol(err.to_string()),
|
ParseErrorType::BadInput(LexError::ImproperSymbol(err.to_string())),
|
||||||
NO_POS,
|
NO_POS,
|
||||||
))
|
)
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user