We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a0400b commit 6c3796dCopy full SHA for 6c3796d
rust/src/utils.rs
@@ -26,8 +26,8 @@ use crate::api::{
26
};
27
use crate::{cache, errors, InvocationArg, JavaClass};
28
29
-pub fn to_rust_string(pointer: *const c_char) -> errors::Result<String> {
30
- let slice = unsafe { CStr::from_ptr(pointer).to_bytes() };
+pub unsafe fn to_rust_string(pointer: *const c_char) -> errors::Result<String> {
+ let slice = CStr::from_ptr(pointer).to_bytes();
31
Ok(from_java_cesu8(slice)?.to_string())
32
}
33
0 commit comments