From 261273bac3138b3ce84a478df834dc264d43d316 Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Sat, 25 Jul 2020 09:14:39 +0200 Subject: [PATCH] Unbreak no_std --- src/fn_native.rs | 1 + src/parser.rs | 2 +- src/syntax.rs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fn_native.rs b/src/fn_native.rs index f4de5982..a113db4b 100644 --- a/src/fn_native.rs +++ b/src/fn_native.rs @@ -5,6 +5,7 @@ use crate::engine::Engine; use crate::module::{FuncReturn, Module}; use crate::parser::ScriptFnDef; use crate::result::EvalAltResult; +use crate::stdlib::vec::Vec; use crate::token::{is_valid_identifier, Position}; use crate::utils::{ImmutableString, StaticVec}; use crate::Scope; diff --git a/src/parser.rs b/src/parser.rs index b6a3fa08..643c7aa9 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -592,7 +592,7 @@ impl fmt::Debug for CustomExpr { } impl Hash for CustomExpr { - fn hash(&self, state: &mut H) { + fn hash(&self, state: &mut H) { self.0.hash(state); } } diff --git a/src/syntax.rs b/src/syntax.rs index 485e99ea..616833c1 100644 --- a/src/syntax.rs +++ b/src/syntax.rs @@ -12,7 +12,8 @@ use crate::token::{is_valid_identifier, Position, Token}; use crate::utils::StaticVec; use crate::stdlib::{ - fmt, + boxed::Box, + fmt, format, rc::Rc, string::{String, ToString}, sync::Arc,