From cc304ba5134c87d9cd3fa46cd156a418e6c6a79a Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 2 Nov 2020 13:18:37 +0800 Subject: [PATCH] Fix serde build. --- src/optimize.rs | 2 +- src/serde_impl/de.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/optimize.rs b/src/optimize.rs index 1ef43a5a..55c5d988 100644 --- a/src/optimize.rs +++ b/src/optimize.rs @@ -10,7 +10,7 @@ use crate::fn_call::run_builtin_binary_op; use crate::module::Module; use crate::parser::map_dynamic_to_expr; use crate::scope::Scope; -use crate::token::{is_valid_identifier, NO_POS}; +use crate::token::{is_valid_identifier, NO_POS}; use crate::{calc_native_fn_hash, StaticVec}; #[cfg(not(feature = "no_function"))] diff --git a/src/serde_impl/de.rs b/src/serde_impl/de.rs index a607c589..be0a5633 100644 --- a/src/serde_impl/de.rs +++ b/src/serde_impl/de.rs @@ -2,7 +2,7 @@ use super::str::ImmutableStringDeserializer; use crate::dynamic::{Dynamic, Union}; -use crate::parse_error::ParseErrorType; +use crate::parse_error::{LexError, ParseErrorType}; use crate::result::EvalAltResult; use crate::token::NO_POS; use crate::utils::ImmutableString; @@ -123,10 +123,10 @@ pub fn from_dynamic<'de, T: Deserialize<'de>>( impl Error for Box { fn custom(err: T) -> Self { - EvalAltResult::ErrorParsing(ParseErrorType::BadInput( - LexError::ImproperSymbol(err.to_string()), + EvalAltResult::ErrorParsing( + ParseErrorType::BadInput(LexError::ImproperSymbol(err.to_string())), NO_POS, - )) + ) .into() } }