diff --git a/kclvm/runtime/src/api/utils.rs b/kclvm/runtime/src/api/utils.rs index a88782aff..dcb29c796 100644 --- a/kclvm/runtime/src/api/utils.rs +++ b/kclvm/runtime/src/api/utils.rs @@ -60,7 +60,7 @@ pub fn c2str<'a>(p: *const c_char) -> &'a str { } /// Convert a C str pointer pointer to a Rust Vec. -pub fn c2str_vec(ptr_array: *const *const c_char) -> Vec { +pub(crate) fn c2str_vec(ptr_array: *const *const c_char) -> Vec { let mut result = Vec::new(); let mut index = 0;