Add missing import of String and ToString

This commit is contained in:
J Henry Waugh 2020-08-14 19:24:53 -05:00
parent e6a1b88b4c
commit 1051a3f108
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@ use crate::utils::StaticVec;
use crate::{result::EvalAltResult, token::Position};
use crate::stdlib::{
any::TypeId, boxed::Box, fmt::Display, format, mem, string::ToString, vec::Vec,
any::TypeId, boxed::Box, fmt::Display, format, mem, string::String, string::ToString, vec::Vec,
};
macro_rules! gen_concat_functions {
@ -192,6 +192,7 @@ mod string_funcs_array {
use crate::engine::Array;
use crate::plugin::*;
use crate::utils::ImmutableString;
use crate::stdlib::string::String;
#[export_fn]
pub fn append_array(x: &mut ImmutableString, y: Array) -> String {
@ -207,6 +208,7 @@ mod string_funcs {
use crate::parser::INT;
use crate::plugin::*;
use crate::utils::{ImmutableString, StaticVec};
use crate::stdlib::string::{String, ToString};
#[export_fn]
pub fn append_unit(s: ImmutableString, _x: ()) -> ImmutableString {

View File

@ -3,6 +3,7 @@
pub use crate::{
stdlib::any::TypeId,
stdlib::boxed::Box,
stdlib::string::ToString,
stdlib::vec::Vec,
stdlib::vec as new_vec,
stdlib::mem,