diff --git a/src/packages/string_more.rs b/src/packages/string_more.rs index 9b185ec6..f33fd080 100644 --- a/src/packages/string_more.rs +++ b/src/packages/string_more.rs @@ -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 { diff --git a/src/plugin.rs b/src/plugin.rs index 19e9939a..70697015 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -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,