string_more: add missing pub from crop_string
@@ -292,7 +292,7 @@ mod string_functions {
}
#[rhai_fn(name = "crop")]
- fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
+ pub fn crop_string(s: &mut ImmutableString, start: INT, len: INT) {
let offset = if s.is_empty() || len <= 0 {
s.make_mut().clear();
return;
