Skip to content

Commit

Permalink
chore: change c2str_vec to pub(crate)
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <18012015693@163.com>
  • Loading branch information
He1pa committed Dec 10, 2024
1 parent eb61d84 commit 1e5cca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kclvm/runtime/src/api/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn c2str<'a>(p: *const c_char) -> &'a str {
}

/// Convert a C str pointer pointer to a Rust Vec<String>.
pub fn c2str_vec(ptr_array: *const *const c_char) -> Vec<String> {
pub(crate) fn c2str_vec(ptr_array: *const *const c_char) -> Vec<String> {
let mut result = Vec::new();
let mut index = 0;

Expand Down

0 comments on commit 1e5cca8

Please sign in to comment.