speclatively use stdlib to have automatic no_std compatibility
This commit is contained in:
@@ -3,10 +3,7 @@
|
||||
use crate::result::EvalAltResult;
|
||||
use crate::token::Position;
|
||||
|
||||
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::String};
|
||||
|
||||
#[cfg(feature = "no_std")]
|
||||
use crate::alloc::string::ToString;
|
||||
use crate::stdlib::{boxed::Box, char, error::Error, fmt, string::{String, ToString}};
|
||||
|
||||
/// Error when tokenizing the script text.
|
||||
#[derive(Debug, Eq, PartialEq, Clone, Hash)]
|
||||
|
Reference in New Issue
Block a user