Merge pull request #171 from stevefan1999-personal/patch-no-std
Fix no_std build
This commit is contained in:
commit
0ff9b8790a
@ -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)]
|
||||
|
@ -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<()> {
|
||||
|
@ -12,6 +12,7 @@ use crate::engine::Array;
|
||||
|
||||
use crate::stdlib::{
|
||||
any::TypeId,
|
||||
boxed::Box,
|
||||
fmt::Display,
|
||||
format,
|
||||
string::{String, ToString},
|
||||
|
Loading…
Reference in New Issue
Block a user