Merge pull request #171 from stevefan1999-personal/patch-no-std

Fix no_std build
This commit is contained in:
Stephen Chung 2020-06-26 10:11:21 +08:00 committed by GitHub
commit 0ff9b8790a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
use crate::result::EvalAltResult;
use crate::token::Position;
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::String};
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::{String, ToString}};
/// Error when tokenizing the script text.
#[derive(Debug, Eq, PartialEq, Clone, Hash)]

View File

@ -8,7 +8,7 @@ use crate::parser::{ImmutableString, INT};
use crate::result::EvalAltResult;
use crate::token::Position;
use crate::stdlib::{any::TypeId, boxed::Box};
use crate::stdlib::{any::TypeId, boxed::Box, string::ToString};
// Register array utility functions
fn push<T: Variant + Clone>(list: &mut Array, item: T) -> FuncReturn<()> {

View File

@ -12,6 +12,7 @@ use crate::engine::Array;
use crate::stdlib::{
any::TypeId,
boxed::Box,
fmt::Display,
format,
string::{String, ToString},